> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Escape HTML

> Replace HTML-sensitive characters with safe entities.

The **Escape HTML** action converts characters that could be interpreted as
markup into HTML entities. Use it when inserting plain user-supplied text into
an HTML string.

## Inputs

| Input    | Type   | Required | Description               |
| -------- | ------ | -------- | ------------------------- |
| **Text** | String | Yes      | The plain text to escape. |

## Outputs

| Output      | Type   | Description                            |
| ----------- | ------ | -------------------------------------- |
| **Escaped** | String | The text with HTML characters escaped. |

For example:

```html theme={null}
<strong title="A & B">Hello</strong>
```

becomes:

```html theme={null}
&lt;strong title=&quot;A &amp; B&quot;&gt;Hello&lt;/strong&gt;
```

The action escapes `&`, `<`, `>`, double quotes, and single quotes. It does not
sanitize or validate an existing HTML document.
