Skip to content

CustomElementHandling

Unofficial

Configuration for custom element handling in DOMPurify.

Import:

import type { CustomElementHandling } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface CustomElementHandling

Properties

PropertyTypeDescription
allowCustomizedBuiltInElements?booleanWhether to allow customized built-in elements.
attributeNameCheck?((attributeName: string) => boolean) | null | RegExpCheck function or regex for allowed attribute names.
tagNameCheck?((tagName: string) => boolean) | null | RegExpCheck function or regex for allowed tag names.

Links to this page: