[Rails] Re: How to safely embed JSON object in HTML document
Alex Duck wrote in post #1018609:
> Is there no easy way to embed HTML safe JSON in an HTML document, and
> have
> it parsed by JavaScript engine at the same time?
You could Base64 encode the JSON and decode it on the client-side with
JavaScript.
I am ABSOLUTELY NOT recommending that you do this, but simply stating
that it could work. Still a bad design idea IMHO.
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home