I have an application in which the client can store the following html strings for loading different styles for the actual browser:
I also set up an OWASP policy
to ban malicious html tags as follows:
new HtmlPolicyBuilder().allowElements("link").allowAttributes("rel", "type", "media", "href").onElements("link").toFactory();
But after removing sanitation if browser lines
.
Could you suggest how to configure the policy to allow the storage of such content?
source share