The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

decode - Expand HTML entites in a string

encode - Encode chars in a string using HTML entities

SYNOPSIS

 require HTML::Entities;

 $a = "Våre norske tegn bør &#230res";
 HTML::Entities::decode($a);
 HTML::Entities::encode($a, "\200-\377");

DESCRIPTION

The HTML::Entities::decode() routine replace valid HTML entities found in the string with the corresponding character. The HTML::Entities::encode() routine replace the characters specified by the second argument with their entity representation. The default set of characters to expand are control chars, high bit chars and '<', '&', '>' and '"'.

Both routines modify the string and return it.

COPYRIGHT

Copyright (c) 1995 Gisle Aas. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Gisle Aas <aas@oslonett.no>