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
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →