mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-19 04:18:52 +00:00
Merge pull request #6 from ananyasaxena/master
updating the type of options in the parse function
This commit is contained in:
commit
7cf8c31309
1 changed files with 4 additions and 1 deletions
|
|
@ -742,6 +742,9 @@ const kBlockTextElements = {
|
|||
export function parse(data: string, options?: {
|
||||
lowerCaseTagName?: boolean;
|
||||
noFix?: boolean;
|
||||
script?: boolean;
|
||||
style?: boolean;
|
||||
pre?: boolean;
|
||||
}) {
|
||||
const root = new HTMLElement(null, {});
|
||||
let currentParent = root;
|
||||
|
|
@ -866,4 +869,4 @@ export function parse(data: string, options?: {
|
|||
response.valid = valid;
|
||||
return response;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue