Open jimmyleeeeee opened 2 years ago
The exmaple Code: String html = "<![CDATA[" + "TestData" + "]]>"; String expected = "<![CDATA[TestData]]>"; 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?
The exmaple Code: String html = "<![CDATA[" + "TestData" + "]]>"; String expected = "<![CDATA[TestData]]>"; 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?