Demoronizer is probably a prcursor to tidy, though I haven't done and extensive comparison of the two. Demoronizer is largely aimed at broken Microsoft-generated HTML. I haven't checked to see that tidy corrects the same problems, but it does address quite a few others.