# escapeAttribute (@salmonui/rich-text)

> The escapeAttribute function of @salmonui/rich-text: Escapes text for use inside a double-quoted HTML attribute value.

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

```ts
import { escapeAttribute } 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 escapeAttribute(text: string): string;
```

Escapes text for use inside a double-quoted HTML attribute value.
