Re:Hacker News doesn't validate
by weavejester on Wednesday January 07, 2009 @05:47AM
(#423282)
Ian Bicking seems to consider lxml superior to BeautifulSoup:
http://blog.ianbicking.org/2008/12/10/lxml-an-underappreciat...
Cool! Thanks for this.
Hpricot for Ruby: https://code.whytheluckystiff.net/hpricot/
But, yeah, Tidy does a darn job of turning just about any HTML into XHTML.
Otherwise, try HTML Tidy: http://tidy.sourceforge.net/