CustomElementHandling
Unofficial
Configuration for custom element handling in DOMPurify.
Import:
import type { CustomElementHandling } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface CustomElementHandlingProperties
| Property | Type | Description | |
|---|---|---|---|
| allowCustomizedBuiltInElements? | boolean | Whether to allow customized built-in elements. | |
| attributeNameCheck? | ((attributeName: string) => boolean) | null | RegExp | Check function or regex for allowed attribute names. | |
| tagNameCheck? | ((tagName: string) => boolean) | null | RegExp | Check function or regex for allowed tag names. |
Links to this page: