escape-goat
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -20,5 +20,5 @@ 'use strict'; | ||
exports.escape = input => | ||
input.replace(/[&<>"']/g, m => escapes.has(m) ? escapes.get(m) : m); | ||
input.replace(/[&<>"']/g, m => escapes.get(m) || m); | ||
exports.unescape = input => | ||
input.replace(/&(?:amp|lt|gt|quot|#39);/g, m => unescapes.has(m) ? unescapes.get(m) : m); | ||
input.replace(/&(?:amp|lt|gt|quot|#39);/g, m => unescapes.get(m) || m); |
{ | ||
"name": "escape-goat", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Escape a string for use in HTML or the inverse", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3451