Comparing version 1.4.0 to 1.4.1
@@ -42,6 +42,7 @@ var common = require('./common'); | ||
} | ||
var key, result = ''; | ||
var key, attr, result = ''; | ||
for (key in attributes) { | ||
if (attributes.hasOwnProperty(key)) { | ||
result += ' ' + key + '="' + attributes[key].replace(/"/g, """) + '"'; | ||
attr = '' + attributes[key]; // ensure Number and Boolean are converted to String | ||
result += ' ' + key + '="' + attr.replace(/"/g, '"') + '"'; | ||
} | ||
@@ -48,0 +49,0 @@ } |
{ | ||
"name": "xml-js", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A convertor between XML text and Javascript object / JSON text.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
66846
903