You should read doc of HTML::Entities...
Anyway, an examle code:
# Encode
my $chars2encode = "αισό\"&<>";
my $description = encode_entities($description, $chars2encode);
# Decode
my $description = decode_entities($description);
The module can also export the %char2entity and the %entity2char hashes which contain the mapping from all characters to the corresponding entities.
And I'm glad that you like DirName converter plugin idea. Try it out, it is very flexible.
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Anyway, an examle code:
Code:
use HTML::Entities; # Encode
my $chars2encode = "αισό\"&<>";
my $description = encode_entities($description, $chars2encode);
# Decode
my $description = decode_entities($description);
The module can also export the %char2entity and the %entity2char hashes which contain the mapping from all characters to the corresponding entities.
And I'm glad that you like DirName converter plugin idea. Try it out, it is very flexible.
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...