Interface: DomPurifyRuntime
Defined in: utils/dom/domPurifyRuntime.ts:1
Methodsβ
sanitize()β
sanitize(html: string, options: {
ALLOWED_ATTR: string[];
ALLOWED_TAGS: string[];
FORBID_ATTR: string[];
FORBID_CONTENTS: string[];
FORBID_TAGS: string[];
RETURN_DOM_FRAGMENT: true;
}): DocumentFragment;
Defined in: utils/dom/domPurifyRuntime.ts:2
Parametersβ
htmlβ
string
optionsβ
ALLOWED_ATTRβ
string[]
ALLOWED_TAGSβ
string[]
FORBID_ATTRβ
string[]
FORBID_CONTENTSβ
string[]
FORBID_TAGSβ
string[]
RETURN_DOM_FRAGMENTβ
true