Modifier: entities
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 }}
The 'bacon' is <b>crispy</b>
Additional Reading
Learn how to use and chain modifiers in the Antlers template guide.