updating the type of options in the parse function

This commit is contained in:
ananya saxena 2019-03-22 09:41:03 -07:00 committed by GitHub
parent a37b7cc941
commit 559050a1e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
}