1. Docs
  2. Formulas
  3. Functions

NEWLINE_TO_BR

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

Categories: Text

Syntax

NEWLINE_TO_BR(text)

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?