Modifier: ascii


Replaces all non-ASCII characters with their closest ASCII counterparts and removes any unsupported characters completely. This is very useful for converting foreign language strings into something more code-friendly.

YAML
title: lemoñade
Template
{{ title | ascii }}
Output
lemonade

Additional Reading

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

Last modified on March 31, 2016