Converts a string to an HTML-encoded string. Similar to the Html.Encode method.

{'<p>Hello</p>'|escape}


Will output

&lt;p&gt;Hello&lt;/p&gt;

Last edited Feb 16, 2010 at 12:29 PM by JacoPretorius, version 1

Comments

No comments yet.