How do I encode/decode HTML entities in Ruby? -
I'm trying to decode some HTML entities, like I have an old gem (), but it seems that it has been left twice. Any recommendations? I will need to use it in a model. can: '& amp; Amp; Lt; '
'& lt;' is happening.
: jmglov @ laurana; Sudo gem installed friendly Successfully installed htmlentities-4.2.4: jmglov @ laurana; Irb irb (main): 001: 0> Required 'htmlentities' = & gt; [] Irb (main): 002: 0> HTMLEntities.new.decode "& amp; iexcl; I'm angry with high & amp; nbsp; character references!" = & Gt; "I am very worried about the character's references!"
Comments
Post a Comment