java-html-sanitizer
java-html-sanitizer copied to clipboard
Don't Support <![CDATA[ ]]>
- any input that causes the problem :
- The default policy: EbayPolicyExample
- the output you expect:
The exmaple Code: String html = ""; String expected = ""; SanitizedResult result =org.owasp.html.HtmlSanitizer.sanitize(html, hcr.getWrappedPolicy()); assertEquals(expected, result.getCleanHTML());
In my case, the input with CDATA is OK. But, after Sanitizer, the output data is empty. Is it possible to support CDATA?