Converts most things that would pass as HTML to valid XML.