1. Docs
  2. Formulas
  3. Functions

HTML_ENCODE

Escapes HTML syntax characters in text, e.g. <élan> becomes &lt;élan&gt;.

Categories: Text

Syntax

HTML_ENCODE(text)

Examples

Example 1

Input

1
{
2
"my_action": {
3
"message": "<h1>Hello World!</h1>"
4
}
5
}

Formula

HTML_ENCODE(my_action.message)

Output

"&lt;h1&gt;Hello World!&lt;/h1&gt;"

Sample actions

Event Transform
My Action
Event Transform
HTML_ENCODE

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?
HTML_ENCODE | Docs | Tines