Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

decode Modifier

Convert all HTML entities to their applicable characters via PHP's html_entity_decode() function. Will convert both double and single quotes. This is the opposite of the entities modifier.

string: "I'll "eat" the <b>bacon</b> now";
{{ string | decode }}
{{ Statamic::modify($string)->decode() }}
I'll "eat" the <b>bacon</b> now
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →