in reply to Re: Spreadsheet::XLSX returning < > and & instead of < > &
in thread Spreadsheet::XLSX returning < > and & instead of < > &
Part of some $work->project, I wrote PROCURA::XML::Entities. I'm willing to remove the PROCURA:: part and put it on CPAN. (Feel free to nick the code if you prefer, but in that case retain the credentials).
SYNOPSIS use PROCURA::XML::Entities; my $a = "Read "perlre" for explanation of '& +;'"; my $b = decode_entities ($a); # $b will now be q{Read "perlre" for explanation of '&'} $c = encode_entities ($b); # $c should be the same as $a use PROCURA::XML::Entities (); $decoded = PROCURA::XML::Entities::decode ($a); $encoded = PROCURA::XML::Entities::encode ($a);
Enjoy, Have FUN! H.Merijn
|
---|
In Section
Seekers of Perl Wisdom