# HTML Entity Escaper

Mode: Escape Unescape
Input: Output (with escaped entities):

## What this tool does:

This HTML Entity tool helps you convert between special characters and their corresponding HTML entities. It works in two modes:

### Escape Mode (default):

Converts special characters to HTML entities. This is useful when you need to display code or text containing HTML syntax on a web page without it being interpreted as actual HTML.

- `&` becomes `&amp;`
- `<` becomes `&lt;`
- `>` becomes `&gt;`
- `"` becomes `&quot;`
- `'` becomes `&#39;`

### Unescape Mode:

Converts HTML entities back to their original characters. This is useful when you have HTML-encoded text and need to decode it for readability or further processing.

Supported formats:

- Named entities: `&amp;` → `&`, `&lt;` → `<`, `&gt;` → `>`, `&quot;` → `"`
- Decimal numeric entities: `&#34;` → `"`, `&#160;` → non-breaking space
- Hexadecimal numeric entities: `&#x22;` → `"`, `&#xA0;` → non-breaking space

The tool handles all standard HTML entities and any numeric character reference.

To use the tool, select your desired mode (Escape or Unescape), then paste your text into the input box. The converted text will automatically appear in the output box. You can then copy the result to your clipboard using the "Copy to clipboard" button.