/ Published in: PHP
URL: http://www.barattalo.it/html-fixer/
This PHP class lets you clean and repair html code. WHAT IT DOES: delete closed tags without their opening tag, fix open tag without close, closing them automatically, check bad nesting and fix them, fix bad quotes in attributes, merge different styles attributes in the same tag, remove html comments, remove empty tags and more bad tags.
Expand |
Embed | Plain Text
/* download the class from: http://www.barattalo.it/html-fixer/ */ $dirty_html = ".....bad html here......"; $a = new HtmlFixer(); $clean_html = $a->getFixedHtml($dirty_html);
Comments
Subscribe to comments
You need to login to post a comment.

thank you, very useful