@Test public void testNeotropikeyGlossaryLinksArePreserved() { String input = "<strong>Leaves</strong><a href=\"http: String result = "<strong>Leaves</strong>\n<a href=\"http: assertEquals(result, sanitize(input)); }
public static String sanitize(String unclean) { if (Strings.isNullOrEmpty(unclean)) { return unclean; } else { unclean = unclean.replace("\0", ""); return Jsoup.clean(unclean, html); } }
HtmlSanitizer { public static String sanitize(String unclean) { if (Strings.isNullOrEmpty(unclean)) { return unclean; } else { unclean = unclean.replace("\0", ""); return Jsoup.clean(unclean, html); } } }
HtmlSanitizer { public static String sanitize(String unclean) { if (Strings.isNullOrEmpty(unclean)) { return unclean; } else { unclean = unclean.replace("\0", ""); return Jsoup.clean(unclean, html); } }  }
HtmlSanitizer { public static String sanitize(String unclean) { if (Strings.isNullOrEmpty(unclean)) { return unclean; } else { unclean = unclean.replace("\0", ""); return Jsoup.clean(unclean, html); } }  static String sanitize(String unclean); static String strip(String unclean); }
HtmlSanitizer { public static String sanitize(String unclean) { if (Strings.isNullOrEmpty(unclean)) { return unclean; } else { unclean = unclean.replace("\0", ""); return Jsoup.clean(unclean, html); } }  static String sanitize(String unclean); static String strip(String unclean);  }