I have some input containing HTML like etc. I need a way to escape only the \"bad\" HTML that exposes my si
HTML
OWASP AntiSamy is a project for just that. If you need users to be able to submit structured text, look at markdown (imho a lot better than BBCode).