nohtml

This is a deprecated function, use [%escape%] instead

Legacy tag used to prevent HTML tags from being rendered in templates. Do not use [%nohtml%] for user input.

Example

[%nohtml%]
    <p><b>Look ma! HTML!</b></p>
[%/nohtml%]

Displays:

<p><b>Look ma! HTML!</b></p>

Usage

Wrap this function around any content to escape the HTML tags.

Was this article useful?

Be notified when this page is updated. Optional.