Converting HTML emails to “Well Formed XHTML Code”

Solution:

It is not that badly formed. Just call quoted_printable_decode() on it first.

edit: well, it solves a few problems, but it is still misformed as *********. Whatever possessed them not to quote whole lists of style declarations?

edit2: Ah, Bob removed the quotes all on his own. I assume with leaving the quotes there & quoted printable decode it would be solved.