h

Description

Escapes HTML.

 string h( string input )

Returns an HTML/XML-escaped version of a string. This is useful for safely printing user-generated content that might contain HTML characters within the HTML part of your email.

Example

<pre>
{h('<p>hi there</p>')}
</pre> 
= 
<p>hi there</p> (which will display properly as HTML)

Contact us

Top