abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: create a url friendly string?
Date Sat, 27 Oct 2007 20:43:48 GMT
Yep..

    System.out.println(
      org.apache.abdera.protocol.util.EncodingUtil.sanitize(
        "MustUnderstand vs. MustIgnore","-",true));

I just checked in a tweaked version of EncodingUtil so it produces
better results.

- James

Dan Diephouse wrote:
> Is there a utility floating around that takes a string and creates
> something that is url friendly? i.e. I'd like to take my entry title and
> turn it into a url kind of like wordpress does. i.e. in my last blog
> entry "MustUnderstand vs. MustIgnore" became
> "mustunderstand-vs-mustignore" in the URL.
> Cheers,
> - Dan
> 

Mime
View raw message