title: How can I use Python to parse html tags to Unicode characters
body: <p>I have an XML document with html markup in some text elements like this:</p>
  
  <pre><code>&lt;my-element&gt;&lt;p&gt;This is an XML element&lt;br/&gt;
  with HTML markup and chemical formulas &lt;br/&gt;
  like water H&lt;sub&gt;2&lt;/sub&gt;O, scientific notation like 1.32 x 10&lt;sup&gt;4&lt;/sup&gt;, and other super- and &lt;br/&gt;
  sub-script c&lt;sub&gt;h&lt;/sub&gt;&lt;sup&gt;a&lt;/sup&gt;&lt;sub&gt;r&lt;/sub&gt;&lt;sup&gt;a&lt;/sup&gt;c&lt;sub&gt;t&lt;/sup&gt;&lt;sub&gt;e&lt;/sub&gt;&lt;sup&gt;r&lt;/sup&gt;&lt;sub&gt;s&lt;/sub&gt; &lt;sup&gt;i&lt;/sup&gt;&lt;sup&gt;n&lt;/sup&gt; Unicode.&lt;/p&gt;&lt;/my-element&gt;
  </code></pre>
  
  <p>I'm using lxml's xtree. The parser has two xml and html modes, but I haven't found a way to parse the complete text string (paragraph) to render as Unicode characters like this:</p>
  
  <pre><code>This is an element
  with HTML markup and chemical formulas 
  like water H₂O, scientific notation like 1.32 x 10³, and all super- and 
  sub-script cₕₐᵣₐcₜₑᵣₛ ⁱⁿ Unicode.
  </code></pre>
  
  <p>Is there some other library that an help?</p>