Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cure53/DOMPurify
/ createHTML
Function
createHTML
src/purify.ts:122–124 ·
view source on GitHub ↗
(html)
Source
from the content-addressed store, hash-verified
120
try {
121
return
trustedTypes.createPolicy(policyName, {
122
createHTML(html) {
123
return
html;
124
},
125
createScriptURL(scriptUrl) {
126
return
scriptUrl;
127
},
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected