[Solved] Looking for a function sanitize accent

Hello everybody,

Is there a function who sanitize the accent.
We have urlize but this function doesn’t sanitize the accent.
I can use replaceRE but the regex seems difficult

this is my case
/petite-annonce/{{ urlize (lower .network.name) }}-{{ replaceRE (replace (urlize (lower .network.city) "-" "") }}-{{ .location.zipcode }}
and i’m trying
{{ lower .network.city | urlize | replaceRE "äâàáéèëêïîìíöôòóüûùúµ-" "aaaaeeeeiiiioooouuuu" }}

thank you for help
:slight_smile:

If you set removePathAccents=true in your config, then urlize should behave more to your liking.

3 Likes