MCPcopy
hub / github.com/cure53/DOMPurify / HooksMap

Interface HooksMap

src/types.ts:267–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265type UponSanitizeAttributeHookName = 'uponSanitizeAttribute';
266
267export interface HooksMap {
268 beforeSanitizeElements: NodeHook[];
269 afterSanitizeElements: NodeHook[];
270 beforeSanitizeShadowDOM: DocumentFragmentHook[];
271 uponSanitizeShadowNode: NodeHook[];
272 afterSanitizeShadowDOM: DocumentFragmentHook[];
273 beforeSanitizeAttributes: ElementHook[];
274 afterSanitizeAttributes: ElementHook[];
275 uponSanitizeElement: UponSanitizeElementHook[];
276 uponSanitizeAttribute: UponSanitizeAttributeHook[];
277}
278
279type ArrayElement<T> = T extends Array<infer U> ? U : never;
280

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…