I am trying to pass a string from my java code to javascript like so:
myData.data = "${data.myString}";
This breaks if myString contains a "
I tried storing a javascript safe string instead, just replacing " with \" but then when I use myString in my jsp I get an ugly output with \" showing instead of "
What is the best way to safely pass a string and not mess up the rest of my output.