Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-to-xml

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-to-xml - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

.travis.yml

5

index.js

@@ -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"
}
}

4

README.md
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>&lt;!asdf&amp;</h>\n'
;

@@ -43,0 +47,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc