title: How can I decode HTML entities?
body: <p>Here's a quick Perl question:</p>
  
  <p>How can I convert HTML special characters like <code>&amp;uuml;</code> or <code>&amp;#039;</code> to normal ASCII text?</p>
  
  <p>I started with something like this:</p>
  
  <pre><code>s/\&amp;#(\d+);/chr($1)/eg;
  </code></pre>
  
  <p>and could write it for all HTML characters, but some function like this probably already exists? </p>
  
  <p>Note that I don't need a full HTML->Text converter. I already parse the HTML with the <code>HTML::Parser</code>. I just need to convert the text with the special chars I'm getting.</p>