blib/lib/HTML/Template/ESCAPE/TEXT.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 21 | 42.8 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 3 | 4 | 75.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 28 | 42.8 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package HTML::Template::ESCAPE::TEXT; | ||||||
2 | 2 | 2 | 1044 | use strict; | |||
2 | 4 | ||||||
2 | 72 | ||||||
3 | 2 | 2 | 11 | use warnings FATAL => 'all'; | |||
2 | 3 | ||||||
2 | 66 | ||||||
4 | 2 | 2 | 8 | use base qw(HTML::Template::ESCAPE); | |||
2 | 5 | ||||||
2 | 483 | ||||||
5 | our $VERSION = '2.9_01'; | ||||||
6 | |||||||
7 | sub output { | ||||||
8 | 0 | 0 | 0 | my $self = shift; | |||
9 | 0 | 0 | $_ = shift if (@_ > 0); | ||||
10 | 0 | s/&/&/g; | |||||
11 | 0 | s/\"/"/g; #" | |||||
12 | 0 | s/>/>/g; | |||||
13 | 0 | s/</g; | |||||
14 | 0 | s/'/'/g; #' | |||||
15 | 0 | s/\r\n/ /g; |
|||||
16 | 0 | s/\n/ /g; |
|||||
17 | 0 | s/\r/ /g; |
|||||
18 | 0 | s/ / \n/g; |
|||||
19 | 0 | $_; | |||||
20 | } | ||||||
21 | |||||||
22 | 1; |