def to_xml(content, **kwargs): return html.fromstring(html=content, parser=html.HTMLParser(encoding='utf-8'), **kwargs)