[Owasp-antisamy] pluggable error handling

Jason Li jason.li at owasp.org
Mon May 11 09:42:59 EDT 2009

There's not currently a "clean" way to do it, but it can be done.

Your best bet is to change the language files (see
in the AntiSamy path.

You can either edit your language file directly or create a new file
and set the Locale programmatically in your code.

We'll look into a framework solution for a future release as there
have been requests for similar behavior (exceptions instead of
messages, custom error messages, etc) but I can't promise anything

-Jason Li-
-jason.li at owasp.org-

On Mon, May 11, 2009 at 9:29 AM, Alexander Afonin <alexafonin at yahoo.com> wrote:
> Hello,
> I'd like to be able to get structured validation error details from
> AntiSamy. At the moment, all I can get are formatted and html-encoded
> message strings. I'd like to format error messages myself. Would it be
> possible to provide a mechanism where I could provide my own handler with
> callback method to handle errors and get AntiSamy to invoke it during
> validation process?
> Thanks
> Alex
> _______________________________________________
> Owasp-antisamy mailing list
> Owasp-antisamy at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/owasp-antisamy

More information about the Owasp-antisamy mailing list