En Fr
Web/database development and more...
« The Atom ProjectUserLand RSS 0.92 spec »

Safe HTML checker

06.07.03

English (EU) Safe HTML checker

Permalink 09:58:17, by Francois Planque Email , Categories: PHP, XHTML/CSS

Link: http://simon.incutio.com/archive/2003/02/23/safeHtmlChecker

by Simon Willison

The system I have implemented works by running submitted posts through an XML parser, which checks that each element is in my list of allowed elements, is nested correctly (you can't put a blockquote inside a p for example) and doesn't have any illegal attributes. My initial test have shown it to work pretty well, but if anyone wants to have a go at breaking it please, be my guest.

No feedback yet