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

Function _createHooksMap

src/purify.ts:122–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120};
121
122const _createHooksMap = function (): HooksMap {
123 return {
124 afterSanitizeAttributes: [],
125 afterSanitizeElements: [],
126 afterSanitizeShadowDOM: [],
127 beforeSanitizeAttributes: [],
128 beforeSanitizeElements: [],
129 beforeSanitizeShadowDOM: [],
130 uponSanitizeAttribute: [],
131 uponSanitizeElement: [],
132 uponSanitizeShadowNode: [],
133 };
134};
135
136/**
137 * Resolve a set-valued configuration option: a fresh set built from

Callers 1

createDOMPurifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected