title: Ruby: Convert HTML/Redcloth to plain text
body: <p>Does anybody know how I can convert html to plain text with Ruby. Well really I need to convert RedCloth to plain text, either way would be fine.</p>
  
  <p>I'm not talking about just striping out the tags (that is all I've done so far). For example I would like an ordered list to retain the numbers, unordered lists to use an asterisk for bullets etc.</p>
  
  <pre><code> def red_cloth_to_plain_text(s)
         s = RedCloth.new(s).to_html
         s = strip_tags(s)
         s = html_unescape(s) # reverse of html_escape
         s = undo_red_cloths_html_codes(s)
         return s 
   end
  </code></pre>
  
  <p>Maybe I have to attempt a RedCloth to plain text formatter</p>