SGML::DTDParse::Util - DTDParse utility routines.
use SGML::DTDParse::Util; use SGML::DTDParse::Util qw(:ALL);
SGML::DTDParse::Util provides utility routines for DTDParse modules and scripts.
By default, no routines are exported into the user's namespace. If importing is desired, individual routines can be specified in the use statement or the special tag :ALL can be specified to import all routines.
use
:ALL
$xml_str = entify($str);
Replace special characters with entity references. The characters converted are <, >, &, and " (double-quote).
<
>
&
"
See SGML::DTDParse for an overview of the DTDParse package.
<http://dtdparse.sourceforge.net/>
Earl Hood, <earl@earlhood.com>.
See SGML::DTDParse for copyright and license information.
To install SGML::DTDParse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SGML::DTDParse
CPAN shell
perl -MCPAN -e shell install SGML::DTDParse
For more information on module installation, please visit the detailed CPAN module installation guide.