I have a string that I receive as a response to a get request
{"revision"=>"r2407", "full_version"=>"2.5 [r2407]", "full_name"=>" [r2407]", "version"=>"2.5"}
In a js file:
$('.output').text('<%=CGI.unescape(@response.to_s)%>')
I still get the same string with "
's and stuff. I also tried JS unescape() and it didn't do anything too. What's wrong?