> And tell me please, how do you force Your client to use clean HTML in
> Your content manager?
> May be it helps me not to search such a useless thing as a Regexp.

Run the HTML through HTMLTidy -  http://tidy.sourceforge.net.

To integrate with PHP, you might want to check how the Phoudry Editor does
it (sounds like you're doing similar stuff to them, so their code would be
well worth a look anyway):
http://editor.phoundry.com/

Matt

Reply via email to