mirror of
https://github.com/danbulant/node-html-parser
synced 2026-06-17 13:41:17 +00:00
updating the type of options in the parse function
This commit is contained in:
parent
a37b7cc941
commit
559050a1e9
1 changed files with 4 additions and 1 deletions
|
|
@ -742,6 +742,9 @@ const kBlockTextElements = {
|
||||||
export function parse(data: string, options?: {
|
export function parse(data: string, options?: {
|
||||||
lowerCaseTagName?: boolean;
|
lowerCaseTagName?: boolean;
|
||||||
noFix?: boolean;
|
noFix?: boolean;
|
||||||
|
script?: boolean;
|
||||||
|
style?: boolean;
|
||||||
|
pre?: boolean;
|
||||||
}) {
|
}) {
|
||||||
const root = new HTMLElement(null, {});
|
const root = new HTMLElement(null, {});
|
||||||
let currentParent = root;
|
let currentParent = root;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue