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

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

# ESCAPE_ONCE

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

Escapes text without changing existing escaped entities.

**Categories:** Text

## Syntax

```
ESCAPE_ONCE(text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "a > b & c"
  }
}
```

Formula:

```
ESCAPE_ONCE(my_action.message)
```

Output:

```json
"a &gt; b &amp; c"
```

### Example 2

Input:

```json
{
  "my_action": {
    "message": "a &gt; b & c"
  }
}
```

Formula:

```
ESCAPE_ONCE(my_action.message)
```

Output:

```json
"a &gt; b &amp; c"
```

## Sample actions

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "4",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "a > b > c"
        }
      },
      "position": {
        "x": -915,
        "y": -6405
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "reccrdters": [],
      "form": null
    },
    {
      "disabled": false,
      "name": "ESCAPE_ONCE",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "escape_once": "<<ESCAPE_ONCE(my_action.message)>>"
        }
      },
      "position": {
        "x": -915,
        "y": -6315
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "recrecdrds": [],
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
