You could try HTML::Tidy, which is a front-end to tidyp (aka HTML Tidy). I doubt it cleans up your CSS, though.
"tidyp will validate your HTML, and output cleaned-up HTML."
In reply to Re: Looking for an HTML structure-cleaner
by Anonymous Monk
in thread Looking for an HTML structure-cleaner
by locked_user sundialsvc4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |