in reply to Template::Toolkit uri unescape
You can create your own filters (pass it to the config part of the template object). Untested (I haven't written a filter in awhile) but if it's not right, it's close-
use URI::Escape (); FILTERS => { uri_unescape => sub { URI::Escape::uri_unescape(@_); }, }, ---- Then in the template: [% my_uri_string | uri_unescape %].
It seems a bit strange to have an unescaped URI given to the template though. Probably there is something in the backend which is not being handled as well as it could be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Template::Toolkit uri unescape
by Anonymous Monk on Jun 08, 2009 at 18:52 UTC |