1Text::Smart::HTML(3)  User Contributed Perl Documentation Text::Smart::HTML(3)
2
3
4

NAME

6       Text::Smart::HTML - Smart text outputter for HTML
7

SYNOPSIS

9         use Text::Smart::HTML;
10
11         my $markup = Text::Smart::HTML->new(%params);
12

DESCRIPTION

METHODS

15       my $proc = Text::Smart::HTML->new(target => $target);
16           Creates a new smart text processor which outputs HTML markup.  The
17           only "target" parameter is used to specify the hyperlink window
18           target (via the 'target' attribute on the <a> tag)
19
20       my $markup = $proc->generate_divider
21           Generates a horizontal divider using the <hr> tag.
22
23       my $markup = $proc->generate_itemize(@items)
24           Generates an itemized list of bullet points using the <ul> tag.
25
26       my $markup = $proc->generate_enumeration(@items)
27           Generates an itemized list of numbered points using the <ol> tag
28
29       my $markup = $proc->generate_heading($text, $level)
30           Generates a heading using one of the tags <h1> through <h6>
31
32       my $markup = $proc->generate_paragraph($text)
33           Gnerates a paragraph using the <P> tag.
34
35       my $markup = $proc->generate_bold($text)
36           Generates bold text using the <strong> tag
37
38       my $markup = $proc->generate_italic($text)
39           Generates italic text using the <em> tag.
40
41       my $markup = $proc->generate_monospace($text)
42           Generates monospaced text using the <code> tag.
43
44       my $markup = $proc->generate_link($url, $text)
45           Generates a hyperlink using the <a> tag.
46
47       my $markup = $proc->generate_entity($text)
48           Generates entities using the &frac12;, &frac14;, &frac34;, &copy;,
49           &reg; and <sup> TM </sup> entities / markup.
50
51       my $text = $proc->escape($text)
52           Escapes the ampersand, and angle bracket characters
53

AUTHORS

55       Daniel Berrange <dan@berrange.com>
56
58       Copyright (C) 2000-2004 Daniel P. Berrange <dan@berrange.com>
59

SEE ALSO

61       perl(1)
62
63
64
65perl v5.12.0                      2008-02-23              Text::Smart::HTML(3)
Impressum