---
title: ESCAPE
url: https://www.tines.com/docs/formulas/functions/escape/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# ESCAPE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/escape/)*

Escapes text by replacing characters with escape sequences (e.g. so that the text can be used in a URL)

**Categories:** Text

## Syntax

```
ESCAPE(text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "Did you enjoy 'Willy Wonka & the Chocolate Factory'?"
  }
}
```

Formula:

```
ESCAPE(my_action.message)
```

Output:

```json
"Did you enjoy &#39;Willy Wonka &amp; the Chocolate Factory&#39;?"
```

### Example 2

Input:

```json
{
  "my_action": {
    "message": "Hello World"
  }
}
```

Formula:

```
ESCAPE(my_action.message)
```

Output:

```json
"Hello World"
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "2",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "Did you enjoy 'Willy Wonka & the Chocolate Factory'?"
        }
      },
      "position": {
        "x": 1845,
        "y": 2355
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "ESCAPE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "escape": "<<ESCAPE(my_action.message)>>"
        }
      },
      "position": {
        "x": 1935,
        "y": 2445
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "Hello World"
        }
      },
      "position": {
        "x": 2040,
        "y": 2355
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    },
    {
      "sourceIdentifier": 2,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
