[Owasp-antisamy] AntiSamy policy file that does not allow any HTML

August Detlefsen augustd at codemagi.com
Thu Jul 29 19:09:29 EDT 2010


If you really just want to strip all HTML from an input AntiSamy is 
overkill. A simple regex would probably work faster.

Just off the top of my head:

output = input.replaceAll("<.*?>", "");

Regards,
August


On 7/29/10 3:58 PM, Swathi wrote:
> Do you have a sample AntiSamy policy that does removes all tags.
>
> Thanks
>
>
>
> _______________________________________________
> Owasp-antisamy mailing list
> Owasp-antisamy at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/owasp-antisamy
>    

-- 
August Detlefsen
CEO/Web Application Architect
CodeMagi, Inc.
http://www.codemagi.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/owasp-antisamy/attachments/20100729/a202a342/attachment.html 


More information about the Owasp-antisamy mailing list