jsesc
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,2 +0,2 @@ | ||
/*! https://mths.be/jsesc v1.0.0 by @mathias */ | ||
/*! https://mths.be/jsesc v1.1.0 by @mathias */ | ||
;(function(root) { | ||
@@ -93,2 +93,3 @@ | ||
'escapeEverything': false, | ||
'escapeEtago': false, | ||
'quotes': 'single', | ||
@@ -247,6 +248,10 @@ 'wrap': false, | ||
} | ||
if (options.escapeEtago) { | ||
// https://mathiasbynens.be/notes/etago | ||
return result.replace(/<\/(script|style)/gi, '<\\/$1'); | ||
} | ||
return result; | ||
}; | ||
jsesc.version = '1.0.0'; | ||
jsesc.version = '1.1.0'; | ||
@@ -253,0 +258,0 @@ /*--------------------------------------------------------------------------*/ |
{ | ||
"name": "jsesc", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://mths.be/jsesc", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
259
16393
5
1
0