mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
Convert rsquo when making strings URL safe
This commit is contained in:
parent
934545c191
commit
c5b686636b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Formatter{
|
||||||
$text = self::RemoveDiacritics($text);
|
$text = self::RemoveDiacritics($text);
|
||||||
|
|
||||||
// Remove apostrophes
|
// Remove apostrophes
|
||||||
$text = str_replace('\'', '', $text);
|
$text = preg_replace('/[\'’]/u', '', $text);
|
||||||
|
|
||||||
// Trim and convert to lowercase
|
// Trim and convert to lowercase
|
||||||
$text = mb_strtolower(trim($text));
|
$text = mb_strtolower(trim($text));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue