10

Possible Duplicate:
How do I encode/decode HTML entities in Ruby?

I would like to convert strings like this:

"I'm working"

to

"I'm working"

(i.e. decode HTML entities)

What Ruby/Rails function does the trick ?

I want to use this function in the model.

Community
  • 1
  • 1
Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746

0 Answers0