Hi,
In our project we have a requirement to upgrade from Antisamy to OWASP Java HTML Sanitizer.
The problem we are facing is that we need to block only few elements. So it was pretty straightforward in Antisamy. We just mentioned the names of those tags and blocked them.
Now in OWASP , everything is blocked by default. How can we enable all the tags except the once that we need to block.
PolicyFactory policy = new HtmlPolicyBuilder()
.allowElements("table", "tr", "td", "href", "body", "th", "font", "button", "input", "select") is not an option as we don't want to provide the name of each and every element.
Is there something like PolicyFactory policy = new HtmlPolicyBuilder()
.allowElements(*) that will allow us to add all the elements in HTML
Thanks
Saurav Aggarwal