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

def pretty_html ( container , name , raw ) : root = container . parse_xhtml ( raw ) pretty_html_tree ( container , root ) return serialize ( root , u'text/html' )
pretty print the html represented as a string in raw .