ascii

Overview

Converts a string to ASCII representation by using unicode.normalize(‘NFKD’) before encoding as ASCII, ignoring characters that don’t exist in ASCII.

Official documentaiton on unicode.normalize

Example

{{ value|ascii }}  # 'abc®' => 'abc'