def fix_html(container, raw):
 root = container.parse_xhtml(raw)
 return serialize(root, u'text/html')

def fix_html ( container , raw ) : root = container . parse_xhtml ( raw ) return serialize ( root , u'text/html' )
fix any parsing errors in the html represented as a string in raw .