E
eggie5
I am sending and receiving data from my client/server using the JSON
format. However, it turns out, a lot of the time, that data has ":" or
" ' " characters in it, which causes the the javascript eval function
to throw an exception. What's the best way to handle this problem, but
still allow the ":" and " ' " characters to appear on the rendered
page?
Should I run a regex replace on ":" " ' " characters and replace them
with their escaped variants?
format. However, it turns out, a lot of the time, that data has ":" or
" ' " characters in it, which causes the the javascript eval function
to throw an exception. What's the best way to handle this problem, but
still allow the ":" and " ' " characters to appear on the rendered
page?
Should I run a regex replace on ":" " ' " characters and replace them
with their escaped variants?