Template/ESCAPE/TEXT.pm

filter: Statementstmt 47.8% 11 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 46.6% 14 / 30 CC 2 SCAR 11.0
CC
2
Cov
44%
output
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Template.pm ↑ Summary Template/ESCAPE/STRIP_NEWLINE.pm »
1 package HTML::Template::ESCAPE::TEXT;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use base qw(HTML::Template::ESCAPE);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 our $VERSION = '2.9_01';
6  
7 0 ▶sub output {
Subroutine output: not called CC=2 SCAR=17.9
Pod undocumented
8 0 my $self = shift;
9 0 ▶ $_ = shift if (@_ > 0);
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 0 0 0 0
10 0 s/&/&/g;
11 0 s/\"/"/g; #"
12 0 s/>/>/g;
13 0 s/</&lt;/g;
14 0 s/'/&#39;/g; #'
15 0 s/\r\n/<br>/g;
16 0 s/\n/<br>/g;
17 0 s/\r/<br>/g;
18 0 s/<br>/<br>\n/g;
19 0 $_;
20 }
21  
22 2 1;
« Template.pm ↑ Summary Template/ESCAPE/STRIP_NEWLINE.pm »