title: How to decode HTML entities in Rails 3?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1600526/how-do-i-encode-decode-html-entities-in-ruby">How do I encode/decode HTML entities in Ruby?</a>  </p>
  </blockquote>
  
  
  
  <p>I would like to convert strings like this:</p>
  
  <pre><code>"I&amp;#39;m working"
  </code></pre>
  
  <p>to</p>
  
  <pre><code>"I'm working"
  </code></pre>
  
  <p>(i.e. decode HTML entities)</p>
  
  <p>What Ruby/Rails function does the trick ?</p>
  
  <p>I want to use this function in the model.</p>