I have a service returning results as JSON string with escaped single quote. Ex: O\\\'Neill. Now, when displaying I need to unescape it to say O'Neill. I have tried replacing the string but doesn’t work and it throws a script error – Expected “)” when I tried to assign the text (HTML) to a DIV.
I have a service returning results as JSON string with escaped single quote. Ex:
Share
Rather than escape it server side, why not replace it with the HTML entity
'?