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
Post a Comment