[owasp-antisamy] Is it possible to use AntiSamy and keep code in pre/code tags intact?

Mohamad El-Husseini husseini.mel at gmail.com
Tue Sep 20 17:18:02 EDT 2011

Hi everyone!

I want to use AntiSamy to allow users to post code snippets and other
things. Is it possible to customize AntiSamy to allow script tags that are
nested in code/pre tags?

I want to use it in a similar capacity to StackOverFlow: they allow most
basic HTML, including any tags found inside pre/code tags.

AntiSamy strips such tags regardless. Is AntiSamy the right tool for what
I'm trying to do? Andy advice would be appreciated.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/owasp-antisamy/attachments/20110920/1ef78a54/attachment.html 

More information about the Owasp-antisamy mailing list