[Rails] Re: convert html to plain text in ruby

2008-10-02 Thread Walter McGinnis
You might be able to check out some example code in convert_attachment_to plugin: http://github.com/kete/convert_attachment_to/tree/master Depending on configuration, it will take an uploaded HTML file (or PDF, MS doc...) and convert it into a plain text attribute, etc. Probably overkill for what

[Rails] Re: convert html to plain text in ruby

2008-10-02 Thread Richard Luther
You could use some regexp and the hash ERB::Util::HTML_ESCAPE to return the unescaped versions of the characters. - Richard On Oct 1, 3:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking for a way to convert html to plain text. > Now, I know about strip_tags, but - as th