Accents

Options
Is there any way to remove accents?

Comments

  • arturosanz
    arturosanz Member ✭✭
    Options

    You can do it with lambda functions. This is the javascript for your reference:

    const removeAccents = str =>
    str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');

    Example:

    removeAccents('Antoine de Saint-Exupéry'); // 'Antoine de Saint-Exupery'