Welcome! » Log In » Create A New Profile

custom whitelist?

Posted by es555 
custom whitelist?
August 20, 2009 02:59AM

I want to use htmlpurifier in such a way that only a strict subset of tags and attributes are allowed. Where and how can I specify the list of html tags and attributes that I want to allow (so that ALL other tags and attributes get immediately filtered out). Thanks.

Re: custom whitelist?
August 20, 2009 09:55AM

i'd start with reading the docs on this site.



are what you require. you could use HTML.Allowed for a general purpose, but you'll get more benefit from using the above 2 configs rather than HTML.Allowed.

hope this helps you.

Re: custom whitelist?
August 20, 2009 10:45AM

%HTML.Allowed is a strictly equivalent to the two mentioned above.

Sorry, you do not have permission to post/reply in this forum.