Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 34d9f9a

Browse files
committed
update readme
1 parent 7a4f978 commit 34d9f9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ var options = {
5454
sanitize: true,
5555
trim: true,
5656
arrayNotation: false
57+
alternateTextNode: false
5758
};
5859
```
5960

6061
* **object:** Returns a Javascript object instead of a JSON string
6162
* **reversible:** Makes the JSON reversible to XML (*)
6263
* **coerce:** Makes type coercion. i.e.: numbers and booleans present in attributes and element values are converted from string to its correspondent data types. Coerce can be optionally defined as an object with specific methods of coercion based on attribute name or tag name, with fallback to default coercion.
6364
* **trim:** Removes leading and trailing whitespaces as well as line terminators in element values.
64-
* **arrayNotation:** XML child nodes are always treated as arrays
65+
* **arrayNotation:** XML child nodes are always treated as arrays NB: you can specify a selective array of nodes for this to apply to instead of the whole document.
6566
* **sanitize:** Sanitizes the following characters present in element values:
6667

6768
```javascript
@@ -76,6 +77,8 @@ var chars = {
7677
"'": '''
7778
};
7879
```
80+
* **alternateTextNode:** Changes the default textNode property from $t to _t when option is set to true. Alternatively a string can be specified which will override $t to what ever the string is.
81+
7982

8083
### Options object for `toXml`
8184

0 commit comments

Comments
 (0)