From f656c7b2de2a62a9a363f797c6f03a2477e7312e Mon Sep 17 00:00:00 2001 From: taoqf Date: Fri, 8 Sep 2023 14:30:34 +0800 Subject: [PATCH] fix: docs #245 --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d644ba7..6d8510f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ no closing `
  • `, `` etc). ## Install - ```shell npm install --save node-html-parser ``` @@ -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
    + closingSlash: true // optional, default false. void tag serialisation, add a final slash
    }, blockTextElements: { script: true, // keep text content when parsing @@ -293,7 +292,7 @@ Get class names. Clone a node. -#### getElementById(id: string): HTMLElement; +#### getElementById(id: string): HTMLElement Get element by it's ID.