Perl
Chilkat2 Perl
StringBuilder EntityDecode
Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.Chilkat Perl Downloads
use strict;
use warnings;
use Chilkat2;
# Decode the following HTML entities, replacing each with the character represented.
my $s = 'é é é Latin small letter e with acute';
my $sb = Chilkat2::StringBuilder->new;
$sb->Append($s);
$sb->EntityDecode();
# Output: é é é Latin small letter e with acute
print $sb->GetAsString(), "\n";