Skip to content

Commit f656c7b

Browse files
committed
fix: docs #245
1 parent d3980c5 commit f656c7b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ no closing `<li>`, `<td>` etc).
1010

1111
## Install
1212

13-
1413
```shell
1514
npm install --save node-html-parser
1615
```
@@ -86,7 +85,7 @@ Parse the data provided, and return the root of the generated DOM.
8685
comment: false, // retrieve comments (hurts performance slightly)
8786
voidTag:{
8887
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']
89-
addClosingSlash: true // optional, default false. void tag serialisation, add a final slash <br/>
88+
closingSlash: true // optional, default false. void tag serialisation, add a final slash <br/>
9089
},
9190
blockTextElements: {
9291
script: true, // keep text content when parsing
@@ -293,7 +292,7 @@ Get class names.
293292

294293
Clone a node.
295294

296-
#### getElementById(id: string): HTMLElement;
295+
#### getElementById(id: string): HTMLElement
297296

298297
Get element by it's ID.
299298

0 commit comments

Comments
 (0)