src/Utils/StringTools.php
public static function clean($string)
  {
    $string = static::removeHtmlTags($string);
    setlocale(LC_CTYPE, 'fr_FR.UTF-8');
    $string = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $string);
    $string = str_replace(' ', '-', $string);
    $string = strtolower($string);
    $string = trim($string, '-');
    $string = preg_replace('/[^\w-]/', '', $string);
    $string = preg_replace('/-+/', '-', $string);
    return $string;
  }
public static function clean($string)
  {
    $string = static::removeHtmlTags($string);
    setlocale(LC_CTYPE, 'fr_FR.UTF-8');
    $string = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $string);
    $string = str_replace(' ', '-', $string);
    $string = strtolower($string);
    $string = trim($string, '-');
    $string = preg_replace('/[^\w-]/', '', $string);
    $string = preg_replace('/-+/', '-', $string);
    return $string;
  }
Nettoie la chaîne de caractère de tous les caractères spéciaux

@param  string  $string  Chaîne de caractère
@return string           Chaîne de caractère nettoyée