Corrected handling of XHTML text representations