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.3'; |
5
|
5
|
|
|
5
|
|
285260
|
use strict; |
|
5
|
|
|
|
|
46
|
|
|
5
|
|
|
|
|
123
|
|
6
|
5
|
|
|
5
|
|
22
|
use warnings; |
|
5
|
|
|
|
|
7
|
|
|
5
|
|
|
|
|
121
|
|
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
1865
|
use parent qw/ DynaLoader Exporter /; |
|
5
|
|
|
|
|
1234
|
|
|
5
|
|
|
|
|
23
|
|
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__ |