line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Template::Compiled::Plugin::VBEscape;
|
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
232830
|
use strict;
|
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
130
|
|
4
|
3
|
|
|
3
|
|
19
|
use warnings;
|
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
133
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.03';
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
1487
|
use HTML::Template::Compiled;
|
|
3
|
|
|
|
|
74336
|
|
|
3
|
|
|
|
|
22
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
HTML::Template::Compiled->register(__PACKAGE__);
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub register {
|
13
|
3
|
|
|
3
|
1
|
46
|
my $class = shift;
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
|
|
19
|
my %plugs = (
|
16
|
|
|
|
|
|
|
escape => {
|
17
|
|
|
|
|
|
|
#
|
18
|
|
|
|
|
|
|
VB => \&escape_vb,
|
19
|
|
|
|
|
|
|
VB_ATTR => __PACKAGE__ . '::escape_vb',
|
20
|
|
|
|
|
|
|
},
|
21
|
|
|
|
|
|
|
);
|
22
|
|
|
|
|
|
|
|
23
|
3
|
|
|
|
|
13
|
return \%plugs;
|
24
|
|
|
|
|
|
|
}
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub escape_vb {
|
27
|
4
|
|
|
4
|
1
|
12089
|
my $escaped = shift;
|
28
|
|
|
|
|
|
|
|
29
|
4
|
100
|
|
|
|
76
|
defined $escaped or return;
|
30
|
2
|
|
|
|
|
13
|
$escaped =~ s{"}{""}xmsg;
|
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
67
|
return $escaped;
|
33
|
|
|
|
|
|
|
}
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# $Id$
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1;
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__
|