• 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)
  • Thread Starter Jorim

    (@jorim)

    This dash is replaced by -–- in the sanitize_title_with_dashes() function

    I would like to add that the second dash is another one then shown in this thread ??

    Nobody did some editing like this in sanitize_title_with_dashes() so far?

    Thread Starter Jorim

    (@jorim)

    Someone?

    Struggling with the same issue….no luck so far…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding characters to sanitize_title_with_dashes’ is closed to new replies.