Simon Willison’s Weblog

PECL :: Package :: tidy (via) Tidy for PHP; repairs busted HTML and lets you traverse the DOM as well