Skip to content

Commit 4becf0e

Browse files
authored
Merge pull request #273 from pmilanowicz-finder/patch-1
docs(readme): add missing parse options
2 parents 29c0ac0 + f747bad commit 4becf0e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,17 @@ Parse the data provided, and return the root of the generated DOM.
8181

8282
```js
8383
{
84-
lowerCaseTagName: false, // convert tag name to lower case (hurts performance heavily)
85-
comment: false, // retrieve comments (hurts performance slightly)
86-
voidTag:{
84+
lowerCaseTagName: false, // convert tag name to lower case (hurts performance heavily)
85+
comment: false, // retrieve comments (hurts performance slightly)
86+
fixNestedATags: false, // fix invalid nested <a> HTML tags
87+
parseNoneClosedTags: false, // close none closed HTML tags instead of removing them
88+
voidTag: {
8789
tags: ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', 'track', 'wbr'], // optional and case insensitive, default value is ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', 'track', 'wbr']
88-
closingSlash: true // optional, default false. void tag serialisation, add a final slash <br/>
90+
closingSlash: true // optional, default false. void tag serialisation, add a final slash <br/>
8991
},
9092
blockTextElements: {
91-
script: true, // keep text content when parsing
92-
noscript: true, // keep text content when parsing
93+
script: true, // keep text content when parsing
94+
noscript: true, // keep text content when parsing
9395
style: true, // keep text content when parsing
9496
pre: true // keep text content when parsing
9597
}

0 commit comments

Comments
 (0)