@Test void verifyEntitiesAreNotBroken() { Document document = this.cleaner.clean(new StringReader("<p>&Eacute;</p>")); String content = document.getElementsByTagName("p").item(0).getTextContent(); assertEquals("É", content); assertHTML("<p>É</p>", "&Eacute;"); document = this.cleaner.clean(new StringReader("<p>&frac14;</p>")); content = document.getElementsByTagName("p").item(0).getTextContent(); assertEquals("¼", content); assertHTML("<p>¼</p>", "&frac14;"); document = this.cleaner.clean(new StringReader("<p>&f!rac14;</p>")); content = document.getElementsByTagName("p").item(0).getTextContent(); assertEquals("&f!rac14;", content); assertHTML("<p>&amp;f!rac14;</p>", "&f!rac14;"); document = this.cleaner.clean(new StringReader("<p>&frac12;</p>")); content = document.getElementsByTagName("p").item(0).getTextContent(); assertEquals("½", content); assertHTML("<p>½</p>", "&frac12;"); }
@Override public Document clean(Reader originalHtmlContent) { return clean(originalHtmlContent, getDefaultConfiguration()); }
DefaultHTMLCleaner implements HTMLCleaner { @Override public Document clean(Reader originalHtmlContent) { return clean(originalHtmlContent, getDefaultConfiguration()); } }
DefaultHTMLCleaner implements HTMLCleaner { @Override public Document clean(Reader originalHtmlContent) { return clean(originalHtmlContent, getDefaultConfiguration()); }  }
DefaultHTMLCleaner implements HTMLCleaner { @Override public Document clean(Reader originalHtmlContent) { return clean(originalHtmlContent, getDefaultConfiguration()); }  @Override Document clean(Reader originalHtmlContent); @Override Document clean(Reader originalHtmlContent, HTMLCleanerConfiguration configuration); @Override HTMLCleanerConfiguration getDefaultConfiguration(); }
DefaultHTMLCleaner implements HTMLCleaner { @Override public Document clean(Reader originalHtmlContent) { return clean(originalHtmlContent, getDefaultConfiguration()); }  @Override Document clean(Reader originalHtmlContent); @Override Document clean(Reader originalHtmlContent, HTMLCleanerConfiguration configuration); @Override HTMLCleanerConfiguration getDefaultConfiguration();  }