xml-js-graphite
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -82,6 +82,8 @@ var helper = require('./options-helper'); | ||
attr = "" + attributes[key]; // ensure number and boolean are converted to String | ||
// edge case, graphite uses lots of && because of conditionals | ||
// replace & with & to avoid double sanitization | ||
attr = attr.replace(/&/g, "&"); | ||
attr = attr.replace(/&/g, "&"); | ||
attr = attr.replace(/"/g, """); | ||
attr = attr.replace(/</g, "<"); | ||
// edge case, graphite uses lots of && because of conditionals | ||
attr = attr.replace(/&&/g, "&&"); | ||
attrName = | ||
@@ -88,0 +90,0 @@ "attributeNameFn" in options |
{ | ||
"name": "xml-js-graphite", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "A convertor between XML text and Javascript object / JSON text. Forked to add Graphite specific features.", | ||
@@ -5,0 +5,0 @@ "repository": { |
129469
29
1850