blib/lib/Text/Pipe/HTML/DecodeEntities.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 18 | 18 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 25 | 25 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 1 | 1 | 3892 | use 5.008; | |||
1 | 5 | ||||||
1 | 40 | ||||||
2 | 1 | 1 | 7 | use strict; | |||
1 | 3 | ||||||
1 | 29 | ||||||
3 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 57 | ||||||
4 | |||||||
5 | package Text::Pipe::HTML::DecodeEntities; | ||||||
6 | our $VERSION = '1.100880'; | ||||||
7 | # ABSTRACT: Text pipe that can decode HTML entities | ||||||
8 | 1 | 1 | 7 | use HTML::Entities; | |||
1 | 1 | ||||||
1 | 86 | ||||||
9 | 1 | 1 | 5 | use parent qw(Text::Pipe::HTML); | |||
1 | 8 | ||||||
1 | 7 | ||||||
10 | |||||||
11 | sub filter_single { | ||||||
12 | 2 | 2 | 1 | 8202 | my ($self, $input) = @_; | ||
13 | 2 | 10 | decode_entities($input); | ||||
14 | 2 | 12 | $input; | ||||
15 | } | ||||||
16 | 1; | ||||||
17 | |||||||
18 | |||||||
19 | __END__ |