On Thu, Mar 13, 2003 at 11:32:02AM +0100, [EMAIL PROTECTED] wrote:
> Hello,
Hello,
> which function could I use to transform characters such as '"' into code for
> HTML.
> Any think like:
> $string='a>b';
> Func($string) return ('a>b')
The HTML::Entities module can do this for you:
#!/usr/bin/perl
use strict;
use warnings;
use HTML::Entities;
print encode_entities('"a>b&c"');
Along with other related functions -- perldoc HTML::Entities
HTH,
--
Michael
[EMAIL PROTECTED]
http://www.jedimike.net/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]