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

Ascii Modifier

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.

title: lemoñade
{{ title | ascii }}
{{ Statamic::modify($title)->ascii() }}
lemonade