mathiasbynens / jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
https://mths.be/jsesc
MIT License
716 stars 48 forks source link

Can't we unescape? #68

Open saurabhck12 opened 1 year ago

saurabhck12 commented 1 year ago

Does this have an unescape function as well?

michaelficarra commented 1 year ago
let unescaped = JSON.parse(`'${escaped}'`);