Convert rsquo when making strings URL safe

This commit is contained in:
Alex Cabal 2022-06-18 20:50:57 -05:00
parent 934545c191
commit c5b686636b

View file

@ -15,7 +15,7 @@ class Formatter{
$text = self::RemoveDiacritics($text);
// Remove apostrophes
$text = str_replace('\'', '', $text);
$text = preg_replace('/[\']/u', '', $text);
// Trim and convert to lowercase
$text = mb_strtolower(trim($text));