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

Commit 6aefda0

Browse files
committed
Update README.md
1 parent 8379a54 commit 6aefda0

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ parser.toXml(json, options);
3232

3333
### Options object
3434

35+
Default values:
3536
```javascript
3637
var options = {
37-
object: false,
38-
reversible: false,
39-
coerce: true,
40-
sanitize: true,
41-
trim: true };
38+
object: false,
39+
reversible: false,
40+
coerce: true,
41+
sanitize: true,
42+
trim: true
43+
};
4244
```
4345

4446
* **object:** Returns a Javascript object instead of a JSON string
@@ -48,14 +50,16 @@ var options = {
4850
* **sanitize:** Sanitizes the following characters:
4951

5052
```javascript
51-
var chars = { '<': '&lt;',
52-
'>': '&gt;',
53-
'(': '&#40;',
54-
')': '&#41;',
55-
'#': '&#35;',
56-
'&': '&amp;',
57-
'"': '&quot;',
58-
"'": '&apos;' };
53+
var chars = {
54+
'<': '&lt;',
55+
'>': '&gt;',
56+
'(': '&#40;',
57+
')': '&#41;',
58+
'#': '&#35;',
59+
'&': '&amp;',
60+
'"': '&quot;',
61+
"'": '&apos;'
62+
};
5963
```
6064

6165

0 commit comments

Comments
 (0)