ALLOWED_URL_SCHEMES
const
Form & Input
URL schemes allowed on <a href> values in the rich Textarea sanitiser. Tested against the start of the trimmed, lower-cased href. Anything else (notably javascript:, data:, vbscript:) is stripped.
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.
- 'http:'
- Plain HTTP links.
- 'https:'
- Secure HTTPS links.
- 'mailto:'
- Email links.
- 'tel:'
- Phone links.
Ecosystem
Used by
Composables and components that consume this constant.
OrigamTextarea
Usage
Examples
Ready-to-paste code snippets using this constant.
Validating a URL scheme