WebApp Sec mailing list archives

Re: whitelisting HTML tags


From: Tim <tim-security () sentinelchicken org>
Date: Wed, 2 Nov 2005 11:17:33 -0500


This is exactly the sort of thing I'm looking for. Anyone know of any
libraries (preferably in Java) that already do this?

I personally feel it is a bad idea to allow any HTML, but if it is a
requirement, you might be best off requiring users use XHTML tags.  That
way you can create a restrictive XML DTD for them, and there are plenty
of tools out there that can enforce that.

tim


Current thread: