ALLOWED_CLASS_PREFIX

const
Form & Input

Whitelist prefix for class attributes that survive the rich Textarea HTML sanitiser. Only classes starting with this prefix are retained, preventing arbitrary class injection while allowing semantic rich-text classes.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Validating a class against the allowed prefix

typescript