How to remove accents in slug?

Dear all,

I’m facing an issue with auto generated slugs… If the slug is based on a field containing accent (é, è, à, ü, ù, ë, ê, …) the slug contains these accents and the most part of the API calls using the slug field fail…

Does anyone know a powerful REGEX to replace the characters with accent by the same characters without accent ? (ex: é -> e, à -> a).

Many thanks for your help !


Great, many thanks @NigelG!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.