Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Text::Smart::HTML
Smart text outputter for HTML

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



NAME

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


SYNOPSIS


  use Text::Smart::HTML;

  my $markup = Text::Smart::HTML->new(%params);


DESCRIPTION


METHODS

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 &frac12;, &frac14;, &frac34;, &copy;, &reg; and <sup> TM </sup> entities / markup.

my $text = $proc->escape($text)
Escapes the ampersand, and angle bracket characters


AUTHORS

Daniel Berrange <dan@berrange.com>


COPYRIGHT

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


SEE ALSO

perl(1)

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy