Skip to content

Commit eb62285

Browse files
committed
Add detail about localerange option
1 parent b6be419 commit eb62285

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ var options = {
7272
trimValues: true,
7373
cdataTagName: "__cdata", //default is 'false'
7474
cdataPositionChar: "\\c",
75+
localeRange: "", //To support non english character in tag/attribute values.
7576
attrValueProcessor: a => he.decode(a, {isAttributeValue: true}),//default is a=>a
7677
tagValueProcessor : a => he.decode(a) //default is a=>a
7778
};
@@ -103,6 +104,7 @@ var nimndata = fastXmlParser.convertTonimn(tObj,schema,options);
103104
* **decodeHTMLchar** : This options has been removed from 3.3.4. Instead, use tagValueProcessor, and attrValueProcessor. See above example.
104105
* **cdataTagName** : If specified, parser parse CDATA as nested tag instead of adding it's value to parent tag.
105106
* **cdataPositionChar** : It'll help to covert JSON back to XML without losing CDATA position.
107+
* **localeRange**: Parser will accept non-English character in tag or attribute name. Check #87 for more detail. Eg `localeRange: "a-zA-Zа-яёА-ЯЁ"`
106108
* **tagValueProcessor** : Process tag value during transformation. Like HTML decoding, word capitalization, etc. Applicable in case of string only.
107109
* **attrValueProcessor** : Process attribute value during transformation. Like HTML decoding, word capitalization, etc. Applicable in case of string only.
108110

0 commit comments

Comments
 (0)