File Coverage

blib/lib/WWW/Shopify/Liquid/Filter/StripHtml.pm
Criterion Covered Total %
statement 12 16 75.0
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 22 72.7


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2 21     21   10515 use strict;
  21         41  
  21         724  
3 21     21   98 use warnings;
  21         31  
  21         509  
4              
5 21     21   98 use HTML::Strip;
  21         33  
  21         654  
6              
7 21     21   102 package WWW::Shopify::Liquid::Filter::StripHtml; use base 'WWW::Shopify::Liquid::Filter';
  21         33  
  21         2723  
8 0     0 0   sub operate { my $hs = HTML::Strip->new(); my $text = $hs->parse($_[2]); $hs->eof; return $text; }
  0            
  0            
  0            
9              
10             1;