Hello,

How could I change a page title to a URL compliant string?

For example:
$title = "Gänseleber & Gemüsespieße?"

should become
ganseleber_gemusespiesse

or better

gaenseleber_gemuesespiesse

Replacing known characters seems simple to me, but how assure that only letters, numbers and a underline [a-z0-1_] will be used? Any other and unforeseeable character should be ignored.


Regards
Flözen