Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

sanitize Modifier

Convert special characters to HTML entities with htmlspecialchars.

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

Double Encoding

You can double encode HTML entities by passing true as an argument. This is useful for preserving JSON formatting.

{{ example | sanitize(true) }}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →