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 53 forks source link

Add option to only escape non-ASCII and unprintable ASCII characters (enabled by default) #1

Closed mathiasbynens closed 11 years ago

mathiasbynens commented 11 years ago

…like on http://mothereff.in/js-escapes.

Any ideas for the option name? Perhaps escapeAll: true to escape all symbols (even A-Z etc.)?

michaelficarra commented 11 years ago

I like escapeEverything.

mathiasbynens commented 11 years ago

Thanks for the feedback, @michaelficarra. I agree, it does sound better.