There are many ways. One way is Hpricot gem.
Check this link: http://stackoverflow.com/questions/1243817/hpricot-get-all-text-from-document require 'hpricot' require 'open-uri' doc = open("http://stackoverflow.com/") { |f| Hpricot(f) } text = (doc/"//*/text()") # array of text values puts text.join("\n") On 20 May 2010 06:22, ahmy <[email protected]> wrote: > Hi > > Im trying to parse a HTML to raw text, is there any plugin or gem for > this ? > exactly im trying to parse an email response whether it's HTML or Text > or both of them. > > Thank you > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- -- Nandri(Thanks in Tamil), Amala Singh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

