Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cure53/DOMPurify
/ createHTML
Function
createHTML
test/test-suite.js:8947–8949 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
8945
(assert) => {
8946
const
circular = {
8947
createHTML(s) {
8948
return
DOMPurify.sanitize(s);
8949
},
8950
createScriptURL: (s) => s,
8951
};
8952
assert.throws(() =>
Callers
nothing calls this directly
Calls
1
sanitize
Method · 0.80
Tested by
no test coverage detected