News for hackers. Stuff that matters.
Re:Hacker News doesn't validate by snprbob86 on Tuesday January 06, 2009 @11:09PM (#422980)
For Python, use BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/

Otherwise, try HTML Tidy: http://tidy.sourceforge.net/

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...
Re:Hacker News doesn't validate by snprbob86 on Wednesday January 07, 2009 @09:35AM (#423440)
Cool! Thanks for this.
Re:Hacker News doesn't validate by eli on Wednesday January 07, 2009 @12:07AM (#423031)
Hpricot for Ruby: https://code.whytheluckystiff.net/hpricot/

But, yeah, Tidy does a darn job of turning just about any HTML into XHTML.