in reply to WordPress 'sanitize_title'

You can easily find out what it does by feeding the PHP function a string and look at the result. For example you might put in something like this:
perl -we 'for (1..127) { print "ABC", chr}; print $/'

Let Wordpress handle that string, and split the result by ABC. Then you have mapping from ASCII to the the corresponding escape sequence.

Replies are listed 'Best First'.
Re^2: WordPress 'sanitize_title'
by Klammer (Acolyte) on Sep 01, 2008 at 14:04 UTC

    Hi moritz

    > Let Wordpress handle that string, ...
    I have to add, I don't host WordPress myself. We're talking about a blog on a hosted platform that uses WordPressMU (MultiUser).

    This means I don't have access to any PHP. Or in other words "I'm just a stupid user without any knowledge what happens behind the scenes". All I have is an online editor where I can paste my html code and publish the post.

    Nevertheless thanks for your answer :)

    Cheers Klammer
      You should be able to enter an URL, and then press the "preview" button; somewhere there you should see the sanitized URL (perhaps in the source code of one of those frames).
        ... somewhere there you should see the sanitized URL ...
        I know. :)

        But this would mean, to open the browser, login to blog, type in title, clicking preview, copying the sanitized URL, switch to script, paste sanitized URL, copy generated hmtl code, switch back to browser and finally paste html code. This is not very user friendly.

        My plan was to write the posting offline including the generated html code without all this window switching.

        But you're right, this would be a possible solution. A quick and dirty one. ;) ( which came to my mind already)

        Cheers Klammer