You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ object = {
59
59
| cdataTagName | If specified, parser parse CDATA as nested tag instead of adding it's value to parent tag. |`false`|
60
60
| arrayMode | When `false`, a tag with single occurrence is parsed as an object but as an array in case of multiple occurences. When `true`, a tag will be parsed as an array always excluding leaf nodes. When `strict`, all the tags will be parsed as array only. When instance of `RegEx`, only tags will be parsed as array that match the regex. When `function` a tag name is passed to the callback that can be checked. |`false`|
61
61
| tagValueProcessor | Process tag value during transformation. Like HTML decoding, word capitalization, etc. Applicable in case of string only. |`(value) => decoder.decode(value).replace(/\r/g, '')`|
62
-
| attributeValueProcessor | Process attribute value during transformation. Like HTML decoding, word capitalization, etc. Applicable in case of string only.|`(value) => value`|
62
+
| attributeValueProcessor | Process attribute value during transformation. Like HTML decoding, word capitalization, etc. |`(value) => value`|
63
63
| stopNodes | an array of tag names which are not required to be parsed. They are kept as Uint8Array. |`[]`|
* @param {boolean} [dynamicTypingAttributeValue=true] Parse attribute values that looks like number or boolean
16
-
* @param {boolean} [allowBooleanAttributes=false]
17
-
* @param {boolean} [dynamicTypingNodeValue=true] Parse tag values that looks like number or boolean
18
-
* @param {boolean} [arrayMode=false]
19
-
* @param {boolean} [cdataTagName=false]
20
-
* @param {function} [tagValueProcessor=(v, node) => decoder.decode(v)] Tag values can be modified during parsing. By default we decode the tag value (a Uint8Array) using TextDecoder
21
-
* @param {function} [attributeValueProcessor=(v) => v] Attribute values can be modified during parsing
22
-
* @param {boolean} [stopNodes=[]] prevent further parsing
* @param {boolean} [options.dynamicTypingNodeValue=true] Parse tag values that looks like number or boolean
18
+
* @param {boolean} [options.arrayMode=false]
19
+
* @param {boolean} [options.cdataTagName=false]
20
+
* @param {function} [options.tagValueProcessor=(v, node) => decoder.decode(v)] Tag values can be modified during parsing. By default we decode the tag value (a Uint8Array) using TextDecoder
21
+
* @param {function} [options.attributeValueProcessor=(v) => v] Attribute values can be modified during parsing
22
+
* @param {function} [options.tagNameProcessor=(v) => v] Callback allowing to rename tag names
23
+
* @param {function} [options.attributeNameProcessor=(v) => v] Callback allowing to rename attribute name
24
+
* @param {boolean} [options.stopNodes=[]] prevent further parsing
0 commit comments