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.
might be helpful
what escape actually does is replace some characters with a hexadecimal escape sequence.
That is the reason why you are getting unreadable string like %4%2.