How do I encode/decode HTML entities in Ruby?

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.

7 Answers
7

Leave a Comment