Ryan Mauger’s Blog: Keeping your html valid with Zend Framework, Tidy and Firebug
Ryan Mauger has great idea about using HTML Tidy and Firebug to automatically repair all views and report validation errors.
With Zend Framework there is an easy way to ensure that you always create valid HTML in your applications. This involves the use of a simple Front Controller Plugin, and the php Tidy component. [...] So you can use tidy for filtering user input, what about using it to effectively clean my documents and ensure my output is always valid? [...] Ok, so now we have valid HTML, thanks to a filter. How does this help with actual development? well in short, it doesn’t, as we have no feedback about what its actually fixed. So onto the next step, getting some nice reporting, in a real handy manner. For this, we will use FirePHP, so that all the information we need is sent to the console on every request. This information can even include automated accessibility testing (really handy for government funded work, which usually has requirements on meeting accessibility standards).
This is definitely clever approach to clean up HTML documents and report validation errors.