1)
A shareware, open-source C program named "Tidy" lives at the venerable W3C, at
http://www.w3.org/People/Raggett/tidy/
It is written by Dave Ragget (the editor of the HTML 4 spec). Is very current, sophisticated, to some extent handles XML, cascading style sheets, ASP and PHP as well. Configurable, is ported/tested on just about any current platform, plus a Java port. I haven't tried it yet, but i'm gonna!
2)
MicroSoft has seen the light ..
yeah right!
Microsoft decided to get in on the action, after several other folks
started incorporating "clean up MS2000 mess" tools into their own apps,
and has a little program for it at the MS website.
http://officeupdate.microsoft.com/2000/downloadDetails/Msohtmf2.htm
It works, if you check *all* the options in the configuration menu. It still leaves cell size, font size, and cell color info though, which you may want, or you can get rid of with a regex. A co-worker tells me an option in DreamWeaver will remove cell size info.
436.   How should an American use their cellphone on a short trip to Europe?
  [strick/2006-07-25]
409.   What is a nice tip for automating updates on debian systems?
  [jake/2004-03-30]
344.   Why are you upset?
  [jake/2003-01-29]
329.   How do I get music for my experimental noise club?
  [jake/2002-10-05]
286.   What's the best Thai Restaurant in Atlanta? (Zab-e-Lee!)
  [strick/2001-11-14]
244.   Does Jeffrey read too many web comics each day?
  [strick/2001-06-06]
218.   how do I make my page appear in web search results?
  [josh/2001-05-08]
( strick/2001-05-08 )
198.   What tiny laptop does strick travel with?
  [strick/2001-03-13]
174.   why doesnt an image change in a java applet when it changes on the server?
  [jesse/2001-02-10]
170.   Where can I find the Linux Kernel Wishlist?
  [rupe/2001-01-31]
139.   How do real programmers write code?
  [rupe/2000-10-25]
131.   What does Jesse do to anything after a fresh linux install?
  [jesse/2000-10-08]
129.   What do all the diferent colors of manic panic hair dye look like?
  [jesse/2000-10-07]
127.   How can I make the "whois" command work like before?
  [robey/2000-09-28]
105.   What does matt do to Windows machine after a fresh install?
  [matt/2000-07-03]
104.   which pacbell pcs store in the bay area has the best prices and selection?
  [jesse/2000-06-18]