object-to-xml
Advanced tools
Comparing version 0.0.2 to 1.0.0
@@ -69,3 +69,6 @@ var sanitizer = require('sanitizer') | ||
if (value && typeof(value) == 'string') { | ||
value = sanitizer.escape(value); | ||
//avoid sanitizing CDATA sections. | ||
if (value.substr(0,9) !== '<![CDATA[' && value.substr(-3) !== ']]>') { | ||
value = sanitizer.escape(value); | ||
} | ||
} | ||
@@ -72,0 +75,0 @@ |
{ | ||
"name": "object-to-xml", | ||
"version": "0.0.2", | ||
"version": "1.0.0", | ||
"description": "Convert any object to XML", | ||
@@ -26,3 +26,6 @@ "main": "index.js", | ||
"sanitizer": "0.0.15" | ||
}, | ||
"devDependencies": { | ||
"nodeunit": "^0.9.1" | ||
} | ||
} |
node-object-to-xml | ||
================== | ||
[![Build Status](https://travis-ci.org/wankdanker/node-object-to-xml.svg)](https://travis-ci.org/wankdanker/node-object-to-xml) | ||
Convert any JavaScript object to XML | ||
@@ -74,2 +76,2 @@ | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
@@ -26,2 +26,4 @@ var ObjectToXML = require('../'); | ||
} | ||
, g : "<![CDATA[ test & data ]]>" | ||
, h : "<!asdf&" | ||
}); | ||
@@ -41,2 +43,4 @@ | ||
+ '</a>\n' | ||
+ '<g><![CDATA[ test & data ]]></g>\n' | ||
+ '<h><!asdf&</h>\n' | ||
; | ||
@@ -43,0 +47,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6514
7
118
1
77
1