On Oct 9, 10:43 am, Ramon Tayag <[email protected]> wrote:
> 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
<textarea cols="50" data-bespinoptions="{ "syntax": "js" }"
which isn't right.
Fred
> Thanks!
> Ramon Tayag
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.