MCPcopy Create free account
hub / github.com/cure53/DOMPurify / createScript

Function createScript

test/bootstrap-test-suite.js:151–153  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

149 window.DOMPurify.sanitize('<img>', {
150 TRUSTED_TYPES_POLICY: {
151 createScript(s) {
152 return s;
153 },
154 },
155 });
156 } catch (e) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected