/usr/share/perl5/HTML/Widgets/NavMenu/EscapeHtml.pm is in libhtml-widgets-navmenu-perl 1.0702-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | package HTML::Widgets::NavMenu::EscapeHtml;
use strict;
use warnings;
use base qw(Exporter);
use vars qw(@EXPORT);
=head1 NAME
HTML::Widgets::NavMenu::EscapeHtml - provides a function to escape HTML.
=head1 SYNOPSIS
use HTML::Widgets::NavMenu::EscapeHtml;
my $escaped_html = escape_html($html);
=head2 escape_html()
Escapes the HTML.
=cut
@EXPORT=(qw(escape_html));
sub escape_html
{
my $string = shift;
$string =~ s{&}{&}gso;
$string =~ s{<}{<}gso;
$string =~ s{>}{>}gso;
$string =~ s{"}{"}gso;
return $string;
}
=head1 COPYRIGHT & LICENSE
Copyright 2006 Shlomi Fish, all rights reserved.
This program is released under the following license: MIT X11.
=cut
1;
|