line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Filter::Escape; |
2
|
5
|
|
|
5
|
|
2353
|
use strict; use utf8; use warnings FATAL => 'all'; |
|
5
|
|
|
5
|
|
6
|
|
|
5
|
|
|
5
|
|
116
|
|
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
21
|
|
|
5
|
|
|
|
|
97
|
|
|
5
|
|
|
|
|
4
|
|
|
5
|
|
|
|
|
152
|
|
3
|
5
|
|
|
5
|
|
14
|
use parent 'DTL::Fast::Filter'; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
23
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
$DTL::Fast::FILTER_HANDLERS{'escape'} = __PACKAGE__; |
6
|
|
|
|
|
|
|
$DTL::Fast::FILTER_HANDLERS{'force_escape'} = __PACKAGE__; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
#@Override |
9
|
|
|
|
|
|
|
sub filter |
10
|
|
|
|
|
|
|
{ |
11
|
8
|
|
|
8
|
0
|
8
|
shift; # self |
12
|
8
|
|
|
|
|
7
|
shift->{'safe'} = 1; # filter_manager |
13
|
8
|
|
|
|
|
42
|
return DTL::Fast::html_protect(shift); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |