jsonencode

The jsonencode attribute JSON-encodes the value for using in a JSON safe context.

<perch:content id="title" type="text" label="Title" jsonencode>