title: Rails - How to Convert HTML to TEXT
body: <p>I'm looking for a way to convert HTML to text. I tried using sanatize to strip out HTML tags but that fails as some HTML has tags like: </p>
  
  <pre><code>&lt;pre&gt;adasdadadad&lt;/pre&gt; 
  </code></pre>
  
  <p>Which is text output where with sanatize it removes the tag and the text is lost.</p>
  
  <p>Ideas?</p>