ALLOWED_ATTRIBUTES
const
Form & Input
Per-tag attribute allowlist used by the rich Textarea HTML sanitiser. Only the declared attributes survive sanitisation; all others are stripped. Values are still validated against URL-scheme and class-prefix rules downstream.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- a: ['href', 'class']
- Links keep href and class.
- p: ['class']
- Paragraphs keep class only.
- ul: ['class']
- ol: ['class']
- li: ['class']
- h1: ['class']
- h2: ['class']
- h3: ['class']
- code: ['class']
- Code elements keep class only.
- strong: ['class']
- em: ['class']
- u: ['class']
- b: ['class']
- i: ['class']
Ecosystem
Used by
Composables and components that consume this constant.
OrigamTextarea
Usage
Examples
Ready-to-paste code snippets using this constant.
Checking which attributes are kept for a tag