NavMenu/EscapeHtml.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« NavMenu/Error/Redirect.pm ↑ Summary NavMenu/ExpandVal.pm »
1 package HTML::Widgets::NavMenu::EscapeHtml;
2 23 $HTML::Widgets::NavMenu::EscapeHtml::VERSION = '1.1000';
3 23 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 23 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 23 ▶use parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 23 ▶use vars qw(@EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 23 @EXPORT_OK = (qw(escape_html));
12  
13 sub escape_html
14 306 ▶{
Subroutine escape_html: called CC=1 SCAR=0.0
Pod documented
15 306 my $string = shift;
16 306 $string =~ s{&}{&}gso;
17 306 $string =~ s{<}{&lt;}gso;
18 306 $string =~ s{>}{&gt;}gso;
19 306 $string =~ s{"}{&quot;}gso;
20 306 return $string;
21 }
22  
23  
24 23 1;
25  
26 __END__
« NavMenu/Error/Redirect.pm ↑ Summary NavMenu/ExpandVal.pm »