def html_fromstring(html): return etree.fromstring(html, _html_parser) # We use this to distinguish repr()s from elements: