How to decode HTML entities in Rails 3?

Misha Moroshko picture Misha Moroshko · May 11, 2011 · Viewed 14.6k times · Source

I am trying to decode some HTML entities, such as '&amp;lt;' becoming '<'.

I have an old gem (html_helpers) but it seems to have been abandoned twice.

Any recommendations? I will need to use it in a model.

Answer