Skip to content

Commit

Permalink
fix: docs #245
Browse files Browse the repository at this point in the history
  • Loading branch information
taoqf committed Sep 8, 2023
1 parent d3980c5 commit f656c7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ no closing `<li>`, `<td>` etc).

## Install


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

Clone a node.

#### getElementById(id: string): HTMLElement;
#### getElementById(id: string): HTMLElement

Get element by it's ID.
Expand Down

0 comments on commit f656c7b

Please sign in to comment.