Client Side Template



Escapes HTML elements in a field.

The escape directive can be placed inside a placeholder for a field to HTML encode the field's value.


For example, if you had this set of JSON data and wanted to escape the value of the "content" field:

        "data": [
            {"content": "this\"ismyvalue"},
            {"content": "<somebrackets>"},
            {"content": "&Ampersands&"}

You could create the following template:

{*header}<h2>Data Content:</h2>{/*header}

The resulting output would be:

<h2>Data Content:</h2>

And would be rendered in the browser or mobile app similar to what is shown below:

Data Content: