ruby - Rails html_safe not escaping html -


i have model stores text formatted tinymce. show view calls so

<%= @resource.content.html_safe %> 

and until worked fine (although hear it's better store characters escaped in database, how do that?), stopped working , rendering html. h, raw , html_safe don't work.

any idea what's going on? i've looked @ recent changes nothing seems fix it.

try this:

(cgi::unescapehtml @resource.content).html_safe 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -