WordPress Plugin: HTML Tidy
HTML Tidy pretty-prints and cleans the HTML in posts and comments before they end up in the database. It is useful especially when you serve content as application/xhtml+xml, where a typo can stop the whole thing from displaying.





