From 559050a1e98e207b2e4bbf551ec581bbfa6e76bb Mon Sep 17 00:00:00 2001 From: ananya saxena Date: Fri, 22 Mar 2019 09:41:03 -0700 Subject: [PATCH] updating the type of options in the parse function --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ec18ed7..e2eb0de 100755 --- a/src/index.ts +++ b/src/index.ts @@ -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; } -} \ No newline at end of file +}