Socket
Socket
Sign inDemoInstall

jstoxml

Package Overview
Dependencies
Maintainers
0
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jstoxml - npm Package Versions

1
8

2.0.4

Diff

davidcalhoun
published 2.0.3 •

davidcalhoun
published 2.0.2 •

davidcalhoun
published 2.0.1 •

davidcalhoun
published 2.0.0 •

Changelog

Source

Version 2.0.0 (breaking)

  • New: automatic entity escaping for &, <, and > characters. In addition, quotes " in attributes are also escaped (see #41). Prior to this, users had to provide their own filter manually. Note that jstoxml makes an effort not to escape entities that appear to have already been encoded, to prevent double-encoding issues.
    • E.g. toXML({ foo: '1 < 2 & 2 > 1' }); // -> "<foo>1 &lt; 2 &amp; 2 &gt; 1</foo>"
    • To restore the default behavior from v1.x.x, simply pass in false to filter and attributesFilter options: toXML({ foo: '1 < 2 & 2 > 1' }, { filter: false, attributesFilter: false }); // -> "<foo>1 < 2 & 2 > 1</foo>"
davidcalhoun
published 1.6.11 •

davidcalhoun
published 1.6.10 •

davidcalhoun
published 1.6.9 •

Changelog

Source

Version 1.6.9

  • fix for #40. Previously top-level objects and arrays were concatenated without proper line breaks.
davidcalhoun
published 1.6.8 •

davidcalhoun
published 1.6.7 •

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