s2 = s2.replace("<br/>", "\n");
diff_match_patch dmp = new diff_match_patch();
dmp.Diff_EditCost = 30;
LinkedList<Diff> ll = dmp.diff_main(s1, s2);
dmp.diff_cleanupEfficiency(ll);
return dmp.diff_prettyHtml(ll);
}
public static void handleException(Throwable e) {
FacesContext.getCurrentInstance().addMessage("", new FacesMessage(e.getLocalizedMessage()));
}