escape

The escape attribute HTML-encodes the output, including encoding any quote marks. This makes it suited to outputting content within an HTML tag attribute.

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