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

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: