NEWLINE_TO_BR

Replaces every newline (\n) with an HTML line break (<br>).

Syntax 

NEWLINE_TO_BR(text)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"message": "Hello\nWorld\n!"
4
}
5
}

Formula

NEWLINE_TO_BR(my_action.message)

Output

"Hello<br />\nWorld<br />\n!"

Sample Actions 

Event transform
My Action
Send email
NEWLINE TO BR
Send email
NEWLINE TO BR
Event transform
NEWLINE TO BR

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?