I\’m using Ajax calls to get some variables data from the DB.
some of my data stored on the database contains double quotes (\”).
when I\’m trying to display the variable :
value=\"\'+ucontent+\'\"
the string gets cut in the middle (of course)
I have tried using escape() but im getting a non readable result – something with %4%2 etc…
how can i escape the double quotes in the variable and still keep a readable string…
BTW – I\’m using UTF8 characters.





Rating:
The post Escaping javascript variable double quotes appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/escaping-javascript-variable-double-quotes.html
No comments:
Post a Comment