Unescaping of data in JS

Posted by innek81 on Stack Overflow See other posts from Stack Overflow or by innek81
Published on 2010-05-18T02:21:36Z Indexed on 2010/05/18 2:30 UTC
Read the original article Hit count: 304

Filed under:
|

Say i got a variable,

var s = "\"\\\"abc\\\"\"";

which is unescaped to "\"abc\"" when i display in the browser.

But i need it to be further unescaped to the actual value "abc".

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about escape