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