API reference: @salmonui/rich-text
SanitizeHtmlOptionsinterface
import type { SanitizeHtmlOptions } from '@salmonui/rich-text';interface SanitizeHtmlOptions {
embedHosts?: readonly string[];
sanitize?: SanitizeHook;
blockIds?: boolean;
allow?: SanitizeAllow | readonly SanitizeAllow[];
}
| Name | Signature | Description |
|---|---|---|
embedHostsoptional | embedHosts?: readonly string[]; | Hostnames whose |
sanitizeoptional | sanitize?: SanitizeHook; | Further restriction, see SanitizeHook. |
blockIdsoptional | blockIds?: boolean; | Keep |
allowoptional | allow?: SanitizeAllow | readonly SanitizeAllow[]; | Elements and attributes editor extensions add. It can widen the
vocabulary only with inert markup: script, style, iframe, object, embed,
forms and foreign content, |