Adding characters to sanitize_title_with_dashes
-
Hi all,
A lot of my editors are coping their work from MS Word. Unfortunate MS Word has a strange dash that is used very much in the titles. This dash is replaced by -–- in the sanitize_title_with_dashes() function to generate the permalink.
I’d like to add this dash to the replace list to be sure it’s replaced by a normal -.
PHP identified the dash as chr(37), but if I add the line
$title = str_replace(chr(37), '-', $title);
to sanitize_title_with_dashes the strange dash is replaced by e2-80-93.What do I wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding characters to sanitize_title_with_dashes’ is closed to new replies.