Wednesday, July 30. 2003
For years we have used Dave Raggett'sTidy
utility to fix an incredible number of problems and accessibility issues associated with the creation of HTML and XHTML documents. Today I'm announcing the 0.5beta release of a PHP extension based on Libtidy
which provides all the functionality of Tidy in ways that just couldn't be done from the command line!
Not only does the Tidy Extension provide all of the normal functionality you'd expect from an implementation of tidy from within PHP, but it also provides a complete API for traversing and pulling data out of the parsed HTML tree using the Zend Engine 2 object-oriented constructs. (see the examples/ directory for example scripts)
You can find the Tidy extension, documentation, tests and examples at the following URL (soon to be replaced with a more appropiate long-term home):http://www.coggeshall.org/php/php-tidy-0-5b.tar.gz