code: def html_to_tags(code):
      
      code = ('<div>' + code + '</div>').encode('utf8')
      el = ET.fromstring(code)
      return [tag_from_element(c) for c in el]
docs: Convert HTML code to tags.
  
      ``code`` is a string containing HTML code. The return value is a
      list of corresponding instances of ``TagBase``.