File Coverage

blib/lib/DTL/Fast/Filter/Striptags.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 22 23 95.6


line stmt bran cond sub pod time code
1             package DTL::Fast::Filter::Striptags;
2 2     2   717 use strict;
  2         4  
  2         44  
3 2     2   8 use utf8;
  2         4  
  2         12  
4 2     2   43 use warnings FATAL => 'all';
  2         4  
  2         57  
5 2     2   8 use parent 'DTL::Fast::Filter';
  2         4  
  2         9  
6              
7             $DTL::Fast::FILTER_HANDLERS{striptags} = __PACKAGE__;
8              
9             #@Override
10             sub filter
11             {
12 2     2 0 3 shift; # self
13 2         3 shift; # filter_manager
14 2         3 my $value = shift;
15              
16 2         23 $value =~ s/<\/?[^>]+?>//gsi;
17              
18 2         8 return $value;
19             }
20              
21             1;