# SanitizeAllow (@salmonui/rich-text)

> The SanitizeAllow interface of @salmonui/rich-text: Elements and attributes an editor extension adds to the vocabulary (RichTextExtension.html). attributes maps a tag (an extension tag or a vocabulary tag) to extra attribute names.

Canonical: https://salmonui.dev/docs/reference/rich-text/SanitizeAllow

```ts
import type { SanitizeAllow } from '@salmonui/rich-text';
```

Entry index: https://salmonui.dev/docs/reference/rich-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/rich-text.md).

## Reference

Kind: interface

```ts
interface SanitizeAllow {
    readonly tags?: readonly string[];
    readonly attributes?: Readonly<Record<string, readonly string[]>>;
}
```

Elements and attributes an editor extension adds to the vocabulary
(`RichTextExtension.html`). `attributes` maps a tag (an extension tag or a
vocabulary tag) to extra attribute names.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `tags` | `readonly tags?: readonly string[];` | optional |  |
| `attributes` | `readonly attributes?: Readonly<Record<string, readonly string[]>>;` | optional |  |
