I need to convert HTML4 input to valid XHTML (strict) in PHP5 for further processing (SAX for instance). Any suggestions?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Is there a way to play audio on a mobile browser w
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.