views:

160

answers:

1

I need to convert HTML4 input to valid XHTML (strict) in PHP5 for further processing (SAX for instance). Any suggestions?

+9  A: 

The PHP Tidy extension should be able to do the job.

Here's a good article about it: Tidying up your HTML with PHP 5.

Chad Birch