Modifier: sanitize


Convert special characters to HTML entities with htmlspecialchars.

example: <b>NEAT</b>
{{ example | sanitize }}
&lt;b&gt;NEAT&lt;b&gt;

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016