Fabiano Reese Righetti > HTML-Encoder > HTML::Encoder

Download:
HTML-Encoder-0.00_04.tar.gz

Dependencies

Annotate this POD

Module Version: 0.00_04   Source  

NAME ^

HTML::Encoder - Encode special caracters to HTML code.

SYNOPSIS ^

 use HTML::Encoder;

 my $HE = new HTML::Encoder(
                            Extended_A    => 1,
                            Extended_B    => 1,
                            Latin_1       => 1,
                           );

 $HE->encode($ref);

DESCRIPTION ^

This module implement algorithm for encoding special caracters content in data structure to HTML code.

METHODS ^

new

The constructor method.

 my $HE = new HTML::Encoder(
                            Arrows        => 0,
                            Controls      => 0,
                            Extended_A    => 1,
                            Extended_B    => 1,
                            Geometric     => 0,
                            Latin_1       => 1,
                            Letterlike    => 0,
                            Mathematical  => 0,
                            Miscellaneous => 0,
                            Modifier      => 0,
                            Punctuation   => 0,
                            Technical     => 0,
                           );

  or

  my $HE = new HTML::Encode(); # Default Latin_1 entities encode true.
encode

Parsing data structure to searching special caracters for convert in HTML code.

 $HE->encode($ref);

SEE ALSO ^

W3C - http://www.w3c.org/

AUTHOR ^

Fabiano Reese Righetti <frighetti@cpan.org>

COPYRIGHT ^

Copyright 2003 Fabiano Reese Righetti <frighetti@cpan.org> All rights reserved.

This code is free software released under the GNU General Public License, the full terms of which can be found in the "COPYING" file in this directory.

syntax highlighting: