def html_to_tags(code):
code = ('<STR_LIT>' + code + '<STR_LIT>').encode('<STR_LIT:utf8>')<EOL>el = ET.fromstring(code)<EOL>return [tag_from_element(c) for c in el]<EOL>
Convert HTML code to tags.

``code`` is a string containing HTML code. The return value is a
list of corresponding instances of ``TagBase``.