in reply to WordPress 'sanitize_title'

So Perl has to sanitize the given title in the same way as WordPress to generate valid urls.

I don't see how that is possible without cooperation from your host, since that relies on wordpress configuration/plugins

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

    The script is only executed locally on my pc. It should be a little helper to generate some html code for me during writing a blog posting offline. So I wouldn't need host cooperation.

    When writing it offline I already know which title it will have. So I just need a script that take my title, sanitizes in the same way WordPress would do and generate URLs including the perl-sanitized title.

    Let's say I want to write a blog post with the title "Test title". Then Perl should take some internal date and time variables, sanitize the title in WordPress way and start building the URLs.

    I hope I described it properly :)

    Cheers Klammer
      The host can have any billion number of custom ways to sanitize the title. You have no guarantee its the default WordPress function.

        You're right, but since it's WordPressMU I hope it sticks to the WordPress standard.

        Cheers Klammer