| 1 | package DTL::Fast::Filter::Urlencode; | ||
| 2 | 3 | ▶ | use strict; use utf8; use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use parent 'DTL::Fast::Filter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 3 | $DTL::Fast::FILTER_HANDLERS{'urlencode'} = __PACKAGE__; | |
| 6 | |||
| 7 | 3 | ▶ | use DTL::Fast::Utils; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | #@Override | ||
| 10 | sub filter | ||
| 11 | { | ||
| 12 | 4 | ▶ | shift; # self |
|
Subroutine
filter: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 4 | shift; # filter_manager | |
| 14 | 4 | my $value = shift; # value | |
| 15 | 4 | shift; #context | |
| 16 | |||
| 17 | 4 | return DTL::Fast::Utils::escape($value); | |
| 18 | } | ||
| 19 | |||
| 20 | 3 | 1; | |