No, there is no such guarantee. But if I were you, I wouldn't worry about XHTML compliance. Just stick the html into a webpage, I seriously doubt any browser will have difficulty displaying it as long as you dont declare the page to be XHTML compliant.
Alternatively, duplicate the comments_to_html function from calibre, that is what calibre uses when inserting the contents of html fields into epub/content server pages.
|