| 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{<}{<}gso; | |
| 18 | 306 | $string =~ s{>}{>}gso; | |
| 19 | 306 | $string =~ s{"}{"}gso; | |
| 20 | 306 | return $string; | |
| 21 | } | ||
| 22 | |||
| 23 | |||
| 24 | 23 | 1; | |
| 25 | |||
| 26 | __END__ | ||