line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: HTML.pm 284 2006-12-01 07:51:49Z chronos $ |
2
|
|
|
|
|
|
|
package BBCode::Tag::HTML; |
3
|
6
|
|
|
6
|
|
36
|
use base qw(BBCode::Tag); |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
671
|
|
4
|
6
|
|
|
6
|
|
36
|
use BBCode::Util qw(multilineText); |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
387
|
|
5
|
6
|
|
|
6
|
|
34
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
208
|
|
6
|
6
|
|
|
6
|
|
34
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
1313
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.34'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub NamedParams($):method { |
10
|
1
|
|
|
1
|
1
|
4
|
return qw(CODE); |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub DefaultParam($):method { |
14
|
1
|
|
|
1
|
1
|
3
|
return 'CODE'; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub toBBCode($):method { |
18
|
1
|
|
|
1
|
1
|
2
|
my $this = shift; |
19
|
1
|
|
|
|
|
10
|
return multilineText "[HTML]".$this->param('CODE')."[/HTML]"; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub toHTML($):method { |
23
|
1
|
|
|
1
|
1
|
2
|
my $this = shift; |
24
|
1
|
|
|
|
|
4
|
return multilineText $this->param('CODE'); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |