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

Function _createTrustedHTML

src/purify.ts:260–269  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

258 };
259
260 const _createTrustedHTML = function (html: string): string {
261 _assertNotInTrustedTypesPolicy();
262
263 IN_TRUSTED_TYPES_POLICY++;
264 try {
265 return trustedTypesPolicy.createHTML(html);
266 } finally {
267 IN_TRUSTED_TYPES_POLICY--;
268 }
269 };
270
271 const _createTrustedScriptURL = function (scriptUrl: string): string {
272 _assertNotInTrustedTypesPolicy();

Callers 4

_parseConfigFunction · 0.85
_initDocumentFunction · 0.85
createDOMPurifyFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…