@mathias What’s the opposite for https://github.com/mathiasbynens/jsesc … ? Just a plain old unescape() or should I avoid that one?
If you need to use decode `jsesc` output on-the-fly, use its `{ json: true }` setting, and then `JSON.parse(jsescOutput)`
-
-
Thanks, will test that. FYI: I’m using it for storing metadata on S3 objects. Only US-ASCII is allowed.
-
Let me know how it goes! It’s easier to discuss this with actual code examples :)
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.