escape

Prevents any code written in between the tags from being treated as executable.

Example

<p>If we find an account registered for [%escape%][@email@][%/escape%], instructions have been sent to this email address.</p>

Result

If <h1>BIG FONT</h1> was entered into the email field, it would display on the page as:

<h1>BIG FONT</h1>

The source code of the page would contain:

&lt;h1&gt;BIG FONT&lt;/h1&gt;

Usage

Commonly used to prevent sections with user input from accidentally/purposefully interfering with the rendering of the page. Similar to the nohtml function but more secure as it renders everything inside as text, rather than only removing the html tags.

Was this article useful?

Be notified when this page is updated. Optional.