Skip to content Skip to sidebar Skip to footer

PHP Library For Converting HTML4 To XHTML?

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

Solution 1:

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

Here's a good article about it: Tidying up HTML Code with Tidy PHP Extension.


Post a Comment for "PHP Library For Converting HTML4 To XHTML?"