title: Convert XML/HTML Entities into Unicode String in Python
body: <p>I'm doing some web scraping and sites frequently use HTML entities to represent non ascii characters. Does Python have a utility that takes a string with HTML entities and returns a unicode type?</p>
  
  <p>For example:</p>
  
  <p>I get back:</p>
  
  <pre><code>&amp;#x01ce;
  </code></pre>
  
  <p>which represents an "ǎ" with a tone mark.  In binary, this is represented as the 16 bit 01ce.  I want to convert the html entity into the value  <code>u'\u01ce'</code></p>