MCPcopy Create free account
hub / github.com/cure53/dompurify / createPolicy

Function createPolicy

test/bootstrap-test-suite.js:100–107  ·  view source on GitHub ↗
(name, rules)

Source from the content-addressed store, hash-verified

98 function setup(window) {
99 window.trustedTypes = {
100 createPolicy(name, rules) {
101 policyCreated = name;
102 return {
103 createHTML(s) {
104 return new StringWrapper(rules.createHTML(s));
105 },
106 };
107 },
108 };
109 },
110 function onload(window) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected