Antoine wrote,
I suggest you pass it through tidy and get xhtml out. It may give
you
some junk but you don't really have many other options...
Tidy is a good choice. I'd also recommend taking a look at TagSoup,
http://mercury.ccil.org/~cowan/XML/tagsoup/
Cheers,
Miles