# ESCAPE\_HTML

| **Description** | The **`ESCAPE_HTML()`** function is used to sanitize text by escaping HTML special characters, such as **`<`**, **`>`**, **`&`**, and others. This ensures that the text is displayed as-is in HTML documents without causing unintended formatting or rendering issues. |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Syntax**      | ESCAPE\_HTML(**`text`**)                                                                                                                                                                                                                                                 |

1. **`text`**: The input text string that you want to escape HTML special characters from.

## Example

### Table

| ID | Description                           |
| -- | ------------------------------------- |
| 1  | This is \<strong>important\</strong>. |
| 2  | \<a href="#">Click here\</a>          |
| 3  | \<div>Hello\</div>                    |

### Function

```
ESCAPE_HTML(`Description`)
```

### Results

| ESCAPE\_HTML (text)                                                        |
| -------------------------------------------------------------------------- |
| `This is &amp;lt;strong&amp;gt;important&amp;lt;/strong&amp;gt;.`          |
| `&amp;lt;a href=&amp;quot;#&amp;quot;&amp;gt;Click here&amp;lt;/a&amp;gt;` |
| `&amp;lt;div&amp;gt;Hello&amp;lt;/div&amp;gt;`                             |
