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 the name says - that only
> strips the tags.
>
> What I need is to get stuff like &amp; and &lt; back to & and < too.
> Any help?
>
> Thanks,
> Mathijs
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to