# Escape string

Escapes special characters in a string so that they do not cause conflicts. For example, `Don't stop me now` becomes `Don\'t stop me now`. Escape string lives in the **Utils** category of the `fx` menu.

## Parameters

| Parameter       | Type    | Required | Default         | Description                                              |
| --------------- | ------- | -------- | --------------- | -------------------------------------------------------- |
| Input           | string  | yes      | —               | Value to transform. Previous step output or a literal.   |
| Escape level    | string  | no       | `Special chars` | Choose one of: `Special chars`, `Everything`, `Minimal`. |
| Escape quote    | string  | no       | `Single`        | Choose one of: `Single`, `Double`, `Backtick`.           |
| JSON compatible | boolean | no       | `false`         | Disabled by default.                                     |
| ES6 compatible  | boolean | no       | `true`          | Enabled by default.                                      |
| Uppercase hex   | boolean | no       | `false`         | Disabled by default.                                     |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                 |
| -------- | ------------------------------------------- |
| `string` | Result of the Escape string transformation. |

## Example

<details>
<summary>Run Escape string</summary>

Escapes special characters in a string so that they do not cause conflicts. Adjust optional parameters when the defaults do not match your payload.

1. Set **Input** to the value to transform (previous step output or a literal).

2. Review **Escape level**, **Escape quote**, **JSON compatible**, **ES6 compatible**, **Uppercase hex** and keep defaults unless your format requires otherwise.

3. Confirm **Output value** shows the transformed result.

</details>
