For more information... RTFM!
NAVIGATION
PAGES THAT LINK HERE
ACCOUNT LOGIN

You are not logged in

Powered by Interchange version 5.7.0

urldecode

Decodes hex-encoded characters in the body text.

Also see the urlencode and decode_entities filters.

Example

[filter urldecode]Kevin%20Walsh[/filter]

Results in:

Kevin Walsh

Source code

sub {
    my $val = shift;

    $val =~ s|\%([a-fA-F0-9][a-fA-F0-9])|chr(hex($1))|eg;
    return $val;
}

Category:  Filters
Last modified by: Kevin Walsh
Modification date: Monday 26 February 2007 at 12:06 PM (EST)
Home  |  Legal nonsense  |  Privacy policy  |  Contact us