xmlbuilder
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -12,2 +12,3 @@ // Generated by CoffeeScript 1.9.1 | ||
this.allowSurrogateChars = options != null ? options.allowSurrogateChars : void 0; | ||
this.noDoubleEncoding = options != null ? options.noDoubleEncoding : void 0; | ||
ref = (options != null ? options.stringify : void 0) || {}; | ||
@@ -155,7 +156,11 @@ for (key in ref) { | ||
XMLStringifier.prototype.elEscape = function(str) { | ||
return str.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\r/g, '
'); | ||
var ampregex; | ||
ampregex = this.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g; | ||
return str.replace(ampregex, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\r/g, '
'); | ||
}; | ||
XMLStringifier.prototype.attEscape = function(str) { | ||
return str.replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"'); | ||
var ampregex; | ||
ampregex = this.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g; | ||
return str.replace(ampregex, '&').replace(/</g, '<').replace(/"/g, '"'); | ||
}; | ||
@@ -162,0 +167,0 @@ |
{ | ||
"name": "xmlbuilder", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "xml", |
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
53418
1349