Text::Smart::HTML − Smart text outputter for HTML
use Text::Smart::HTML; my $markup = Text::Smart::HTML−>new(%params);
my $proc = Text::Smart::HTML−>new(target => $target);
Creates a new smart text processor which outputs HTML markup. The only "target" parameter is used to specify the hyperlink window target (via the ’target’ attribute on the <a> tag)
my $markup = $proc−>generate_divider
Generates a horizontal divider using the <hr> tag.
my $markup = $proc−>generate_itemize(@items)
Generates an itemized list of bullet points using the <ul> tag.
my $markup = $proc−>generate_enumeration(@items)
Generates an itemized list of numbered points using the <ol> tag
my $markup = $proc−>generate_heading($text, $level)
Generates a heading using one of the tags <h1> through <h6>
my $markup = $proc−>generate_paragraph($text)
Gnerates a paragraph using the <P> tag.
my $markup = $proc−>generate_bold($text)
Generates bold text using the <strong> tag
my $markup = $proc−>generate_italic($text)
Generates italic text using the <em> tag.
my $markup = $proc−>generate_monospace($text)
Generates monospaced text using the <code> tag.
my $markup = $proc−>generate_link($url, $text)
Generates a hyperlink using the <a> tag.
my $markup = $proc−>generate_entity($text)
Generates entities using the ½, ¼, ¾, ©, ® and <sup> TM </sup> entities / markup.
my $text = $proc−>escape($text)
Escapes the ampersand, and angle bracket characters
Daniel Berrange <dan AT berrange DOT com>
Copyright (C) 2000−2004 Daniel P. Berrange <dan AT berrange DOT com>