line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Escape::Houdini; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:YANICK'; |
3
|
|
|
|
|
|
|
# ABSTRACT: Perl API to Houdini, a zero-dependency C web escaping library |
4
|
|
|
|
|
|
|
$Escape::Houdini::VERSION = '0.3.2'; |
5
|
5
|
|
|
5
|
|
320237
|
use strict; |
|
5
|
|
|
|
|
53
|
|
|
5
|
|
|
|
|
139
|
|
6
|
5
|
|
|
5
|
|
23
|
use warnings; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
136
|
|
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
2150
|
use parent qw/ DynaLoader Exporter /; |
|
5
|
|
|
|
|
1597
|
|
|
5
|
|
|
|
|
28
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( |
11
|
|
|
|
|
|
|
all => [ qw/ escape_html unescape_html escape_xml |
12
|
|
|
|
|
|
|
escape_uri escape_url escape_href |
13
|
|
|
|
|
|
|
unescape_uri unescape_url |
14
|
|
|
|
|
|
|
escape_js unescape_js |
15
|
|
|
|
|
|
|
/ ], |
16
|
|
|
|
|
|
|
html => [ qw/ escape_html unescape_html /], |
17
|
|
|
|
|
|
|
uri => [ qw/ escape_uri unescape_uri /], |
18
|
|
|
|
|
|
|
url => [ qw/ escape_url unescape_url /], |
19
|
|
|
|
|
|
|
js => [ qw/ escape_js unescape_js /], |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
our @EXPORT_OK = @{$EXPORT_TAGS{all}}; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__PACKAGE__->bootstrap; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |