Modifier: decode


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 }}
I'll "eat" the <b>bacon</b> now

Additional Reading

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

Last modified on August 15, 2018