I have a json formatted arg that I pass to a view helper, but the HTML
gets escaped. I need it not to. I'm on Rails 2.3.6=8, I've tried using
rails_xss and using raw and html_safe but it doesn't make a
difference. How do I not escape the argument? See
http://gist.github.com/613780 for more details.
I have a json formatted arg that I pass to a view helper, but the HTML
gets escaped. I need it not to. I'm on Rails 2.3.6=8, I've tried using
rails_xss and using raw and html_safe but it doesn't make a
difference. How do I not escape the argument? Seehttp://gist.github.com/613780for more details.
I think the html safe mostly worries about < and > and so on.
Looking at your example it looks like the correct thing is happening -
if those quotes marks weren't escaped you'd have