Is there a way to prevent WordPress from including special characters like – (long dash), ", ', etc.. from the post slugs?

Basically, I'd like to run the post-slug through a filter when it is created, and strip any special chars.

The reason is, that it's giving me problems as these show up as utf8-urlencoded in my rss feed, and those links don't work.

link|improve this question

70% accept rate
allowed tags, etc. can be found in formatting.php – kaiser Dec 20 '11 at 23:38
feedback

1 Answer

Found the answer I was looking for:

add_filter('name_save_pre', 'clean_slugs', 0);

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.