Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

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