xmlbuilder
Advanced tools
Comparing version 15.1.0 to 15.1.1
@@ -5,2 +5,6 @@ # Change Log | ||
## [15.1.1] - 2020-04-09 | ||
- Fixed a bug where the `noDoubleEncoding` flag kept named entities other than [those specified in the spec](https://www.w3.org/TR/xml/#sec-predefined-ent) (see [#16](https://github.com/oozcitak/xmlbuilder2/issues/16) in `xmlbuilder2`). | ||
## [15.1.0] - 2020-03-20 | ||
@@ -590,1 +594,2 @@ | ||
[15.1.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v15.0.1...v15.1.0 | ||
[15.1.1]: https://github.com/oozcitak/xmlbuilder-js/compare/v15.1.0...v15.1.1 |
@@ -254,3 +254,3 @@ // Generated by CoffeeScript 2.4.1 | ||
} | ||
ampregex = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g; | ||
ampregex = this.options.noDoubleEncoding ? /(?!&(lt|gt|amp|apos|quot);)&/g : /&/g; | ||
return str.replace(ampregex, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\r/g, '
'); | ||
@@ -269,3 +269,3 @@ } | ||
} | ||
ampregex = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g; | ||
ampregex = this.options.noDoubleEncoding ? /(?!&(lt|gt|amp|apos|quot);)&/g : /&/g; | ||
return str.replace(ampregex, '&').replace(/</g, '<').replace(/"/g, '"').replace(/\t/g, '	').replace(/\n/g, '
').replace(/\r/g, '
'); | ||
@@ -272,0 +272,0 @@ } |
{ | ||
"name": "xmlbuilder", | ||
"version": "15.1.0", | ||
"version": "15.1.1", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "xml", |
@@ -17,3 +17,3 @@ # xmlbuilder-js | ||
The new release of `xmlbuilder` is available at [`xmlbuilder2`](https://github.com/oozcitak/xmlbuilder2)! `xmlbuilder2` has been redesigned from the ground up to be fully conforming to the [modern DOM specification](https://dom.spec.whatwg.org). It supports XML namespaces, provides built-in converters for multiple formats, collection functions, and more. Please see [upgrading from xmlbuilder](https://github.com/oozcitak/xmlbuilder2/wiki/Upgrading-from-xmlbuilder) in the wiki. | ||
The new release of `xmlbuilder` is available at [`xmlbuilder2`](https://github.com/oozcitak/xmlbuilder2)! `xmlbuilder2` has been redesigned from the ground up to be fully conforming to the [modern DOM specification](https://dom.spec.whatwg.org). It supports XML namespaces, provides built-in converters for multiple formats, collection functions, and more. Please see [upgrading from xmlbuilder](https://oozcitak.github.io/xmlbuilder2/upgrading-from-xmlbuilder.html) in the wiki. | ||
@@ -20,0 +20,0 @@ New development will be focused towards `xmlbuilder2`; `xmlbuilder` will only receive critical bug fixes. |
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
321263