Skip to content

Commit

Permalink
Name update
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Oct 6, 2021
1 parent 2cc2399 commit f16f71d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/jsoup/safety/CleanerTest.java
Expand Up @@ -333,9 +333,9 @@ public void bailsIfRemovingProtocolThatsNotSet() {
Document orig = Jsoup.parse("<p>test<br></p>");
orig.outputSettings().syntax(Document.OutputSettings.Syntax.xml);
orig.outputSettings().escapeMode(Entities.EscapeMode.xhtml);
Safelist whitelist = Safelist.none().addTags("p", "br");
Safelist safelist = Safelist.none().addTags("p", "br");

Document result = new Cleaner(whitelist).clean(orig);
Document result = new Cleaner(safelist).clean(orig);
assertEquals(Document.OutputSettings.Syntax.xml, result.outputSettings().syntax());
assertEquals("<p>test<br /></p>", result.body().html());
}
Expand Down

0 comments on commit f16f71d

Please sign in to comment.