ALLOWED_TAGS
const
Form & Input
Tags retained by the rich Textarea HTML sanitiser. Anything outside this allowlist is unwrapped (children preserved, parent tag dropped). Scripts and dangerous containers are instead fully removed via BLOCKED_TAGS.
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.
- 'p'
- Paragraph tag.
- 'br'
- Line break.
- 'strong'
- 'b'
- 'em'
- 'i'
- 'u'
- Underline.
- 'a'
- Hyperlink.
- 'ul'
- 'ol'
- 'li'
- 'h1'
- 'h2'
- 'h3'
- 'code'
- Inline code.
Ecosystem
Used by
Composables and components that consume this constant.
OrigamTextarea
Usage
Examples
Ready-to-paste code snippets using this constant.
Checking if a tag is allowed