Is there any way to allow everything in the policy and then I would just .disallow() couple of elements and attributes that I know are causing problems. For example instead of doing "
PolicyFactory policy = new HtmlPolicyBuilder()
.allowElements("table", "tr", "td", "href", "body", "th", "font", "button", "input", "select")
i can do
PolicyFactory policy = new HtmlPolicyBuilder()
.allowElements(Include all elements)
Note:I don't want to use Antisamy.
This is not possible as OWASP Java HTML Sanitizer is a white-list filter and not a blaklist filter.
By default the sanitizer disallow all, and you must known what you want to you application to receive.