| 1 | # $Id: HTML.pm 284 2006-12-01 07:51:49Z chronos $ | ||
| 2 | package BBCode::Tag::HTML; | ||
| 3 | 6 | ▶ | use base qw(BBCode::Tag); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use BBCode::Util qw(multilineText); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 6 | our $VERSION = '0.34'; | |
| 8 | |||
| 9 | 1 | ▶ | sub NamedParams($):method { |
|
Subroutine
NamedParams: called CC=1 SCAR=0.0
Pod
documented
| |||
| 10 | 1 | return qw(CODE); | |
| 11 | } | ||
| 12 | |||
| 13 | 1 | ▶ | sub DefaultParam($):method { |
|
Subroutine
DefaultParam: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | 1 | return 'CODE'; | |
| 15 | } | ||
| 16 | |||
| 17 | 1 | ▶ | sub toBBCode($):method { |
|
Subroutine
toBBCode: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 1 | my $this = shift; | |
| 19 | 1 | return multilineText "[HTML]".$this->param('CODE')."[/HTML]"; | |
| 20 | } | ||
| 21 | |||
| 22 | 1 | ▶ | sub toHTML($):method { |
|
Subroutine
toHTML: called CC=1 SCAR=0.0
Pod
documented
| |||
| 23 | 1 | my $this = shift; | |
| 24 | 1 | return multilineText $this->param('CODE'); | |
| 25 | } | ||
| 26 | |||
| 27 | 6 | 1; | |