fast-xml-parser
Advanced tools
Comparing version 4.3.3 to 4.3.4
Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library. | ||
**4.3.4 / 2024-01-10** | ||
* fix: Don't escape entities in CDATA sections (#633) (By [wackbyte](https://github.com/wackbyte)) | ||
**4.3.3 / 2024-01-10** | ||
@@ -4,0 +7,0 @@ * Remove unnecessary regex |
{ | ||
"name": "fast-xml-parser", | ||
"version": "4.3.3", | ||
"version": "4.3.4", | ||
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries", | ||
@@ -5,0 +5,0 @@ "main": "./src/fxp.js", |
@@ -390,6 +390,6 @@ type X2jOptions = { | ||
* Add Entity which is not by default supported by this library | ||
* @param entityIndentifier {string} Eg: 'ent' for &ent; | ||
* @param entityIdentifier {string} Eg: 'ent' for &ent; | ||
* @param entityValue {string} Eg: '\r' | ||
*/ | ||
addEntity(entityIndentifier: string, entityValue: string): void; | ||
addEntity(entityIdentifier: string, entityValue: string): void; | ||
} | ||
@@ -396,0 +396,0 @@ |
@@ -268,10 +268,9 @@ 'use strict'; | ||
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true, true); | ||
if(val == undefined) val = ""; | ||
//cdata should be set even if it is 0 length string | ||
if(this.options.cdataPropName){ | ||
// let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true); | ||
// if(!val) val = ""; | ||
currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]); | ||
}else{ | ||
let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true); | ||
if(val == undefined) val = ""; | ||
currentNode.add(this.options.textNodeName, val); | ||
@@ -278,0 +277,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
111853
2236
0