MCPcopy
hub / github.com/cure53/DOMPurify / sanitize

Method sanitize

src/types.ts:49–49  ·  view source on GitHub ↗

* Provides core sanitation functionality. * * @param dirty string or DOM node * @param cfg object * @returns Sanitized TrustedHTML.

(
    dirty: string | Node,
    cfg: Config & { RETURN_TRUSTED_TYPE: true }
  )

Source from the content-addressed store, hash-verified

47 * @returns Sanitized TrustedHTML.
48 */
49 sanitize(
50 dirty: string | Node,
51 cfg: Config & { RETURN_TRUSTED_TYPE: true }
52 ): TrustedHTML;

Callers 15

index.tsFile · 0.80
index.tsFile · 0.80
index.tsFile · 0.80
index.tsFile · 0.80
index.tsFile · 0.80
index.tsFile · 0.80
index.tsFile · 0.80
test-suite.jsFile · 0.80
createHTMLFunction · 0.80
beforeOnLoadSanityCheckFunction · 0.80
createHTMLFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected