Fix SEO function to replace non-breaking spaces with regular spaces
This commit is contained in:
@@ -999,6 +999,8 @@ class S
|
||||
|
||||
public static function seo( $val, $delete_rhombs = false )
|
||||
{
|
||||
$val = preg_replace( '/\xc2\xa0/', ' ', $val );
|
||||
|
||||
$array_rep1 = array( '*', '_', ' ', '+', '"', "'", '?', '-', ',', '!', '~', '<', '>', '@', '#', '$', '%', '^', '&', '*' . '(', ')' . '-', '=', '\\', '|', '[', ']', ':', '(', ')', '–', '•', ' ' );
|
||||
$array_rep2 = array( '-', '-', '-', '-', '', '', '', '-', '-', '', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user