Skip to main content

DomPurifyRuntime

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/dom/domPurifyRuntime / DomPurifyRuntime

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

Returns​

DocumentFragment