in reply to Re: WordPress 'sanitize_title'
in thread WordPress 'sanitize_title'

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

Replies are listed 'Best First'.
Re^3: WordPress 'sanitize_title'
by moritz (Cardinal) on Sep 01, 2008 at 15:59 UTC
    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
        Perhaps I wasn't clear - you have to do that only once - then you know the mapping, assuming that it stays constant. Once you have that mapping, it's trivial to re-implement in perl.

        You should also check if there are additional rules (like collapsing multiple non-printable characters into one, or something like that).