Tony Bowden sent the following bits through the ether:
 
> I'm running into a bit of a problem generating URLs where I need to
> encode text comtaining, for example, ampersands...
>   "artist?name=Ike%20&%20Tina%20Turner"

Template::Plugin::URL is really handy for this. For example:

[% name = "Ike & Tina Turner" %]
[% USE url('artist') %]
<a href="[% url(name = name) %]">[% name %]</a>

... actually produces:

<a href="artist?name=Ike%20%26%20Tina%20Turner">Ike & Tina Turner</a>

HTH, Leon
-- 
Leon Brocard.............................http://www.astray.com/
Nanoware...............................http://www.nanoware.org/

... The Wabbits is coming!


Reply via email to