2022.1

Table Of Contents
Formatting values
Functions that can be called from a Handlebars expression are called helpers. OL Connect
provides a number of helpers to format the value that is the result of an expression. For
example: {{upperCase firstname}} returns the value of the firstname field in uppercase.
The available functions are the same as those provided by the formatter object in standard
Designer scripts; see "formatter" on page1350.
Note that the names of these functions are case sensitive. For example, "upperCase" works,
but "uppercase" does not.
The values will be formatted according to the rules of the current locale. See "Locale" on
page828.
HTML values
The value returned by an {{expression}} is HTML-escaped. This means that those characters
that have a special function in HTML: & < > \" ' ` = are replaced with HTML character
references. For example: & will be changed into &amp;.
Take this expression: <span>{{foo}}</span>
If the field foo contains a '>' and you don't HTML-escape it, this would produce invalid HTML:
<span>></span>
After HTML-escaping, it becomes valid HTML: <span>&gt;</span>
If the result of an expression should not be HTML-escaped, the expression must be enclosed in
three curly brackets: {{{ ... }}}.
When an HTML field is dragged into a Handlebars template it is automatically enclosed in three
curly brackets.
Note
Content provided by 'block helpers' - expressions in the form {{#helperName
arguments}}...{{/helperName}} - is not automatically HTML-escaped. See "Using logic in
a Handlebars template: helpers" on the facing page.
Page 981