Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Just exceptional. Thank you so much, Jack, you smashed it.

— Hugo, Developer

entities Modifier

Encode a string with HTML entities via PHP's htmlentities() function. This is the opposite of the decode modifier.

string: "The 'bacon' is <b>crispy</b>"
{{ string | entities }}
{{ Statamic::modify($string)->entities() }}
The &#039;bacon&#039; is &lt;b&gt;crispy&lt;/b&gt;
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →