Parsing malformed string in python
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2087370/decode-html-entities-in-python-string">Decode HTML entities in Python string?</a>  </p>
</blockquote>



<p>I have a malformed string in Python:</p>

<pre><code>Muhammad Ali&amp;#39;s fight with Larry Holmes
</code></pre>

<p>where <code>&amp;#39;</code> is a apostrophe.</p>

<p>Firstly what representation is this: <code>&amp;#39;</code>? Secondly, how can I parse the string in python so that it replaces <code>&amp;#39;</code> with <code>'</code></p>
