The PEAR::HTML_Common package provides methods for HTML code display and
attributes handling.
* Methods to set, remove, update HTML attributes.
* Handles comments in HTML code.
* Handles layout and tabs for nicer HTML code.
WWW: http://pear.php.net/package/HTML_Common/