in reply to Help with HTML::Entities - decode_entities
Even if it was possible to do what you want with HTML::Entities — and it looks like you can't — It would make most sense to just use
$mystring =~ s/;/;/g; $mystring =~ s/&/&/g;
That said, decoding "&" without decoding all other entities creates garbage. For example
é
and
é
are clearly not equivalent, but they produce the same string under your requirements.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help with HTML::Entities - decode_entities
by punch_card_don (Curate) on Jul 09, 2010 at 00:38 UTC |