# escapeHtml (@salmonui/rich-text)

> The escapeHtml function of @salmonui/rich-text: Escapes text for use as HTML element content.

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

```ts
import { escapeHtml } 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: function

```ts
function escapeHtml(text: string): string;
```

Escapes text for use as HTML element content.
