Q&A: Is there a software program or website for correcting (not just spotting) xhtml errors in website design?

Question by Anne R: Is there a software program or website for correcting (not just spotting) xhtml errors in website design?

I’ve used online validators to identify the errors in my site, but I’m looking for something that can actually correct them. Thanks.

Best answer:

Answer by Matt Flaschen
Well, the computer can’t know what you mean if you don’t write valid code… If you want it to /guess/, see HTML Tidy (http://tidy.sourceforge.net/). Again, sometimes it will guess wrong and sometimes it won’t know what the problem is.

Know better? Leave your own answer in the comments!