From c5b686636bfd9c907be1af891d7346a029b4e67c Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sat, 18 Jun 2022 20:50:57 -0500 Subject: [PATCH] Convert rsquo when making strings URL safe --- lib/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Formatter.php b/lib/Formatter.php index 313d173d..0dfeb0e6 100644 --- a/lib/Formatter.php +++ b/lib/Formatter.php @@ -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));