in reply to Help with HTML::Entities - decode_entities
I think the leading underscore is necessary--best not to second guess the documents when you're having problems--and it seems to do it in place so you have to check the variable, not the return from the function.
perl -MHTML::Entities -le '$s = "ÖH & HAÌ"; _decode_en +tities($s, { amp => "&" }, 0); print $s' -- ÖH & HAÌ
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with HTML::Entities - decode_entities
by punch_card_don (Curate) on Jul 08, 2010 at 23:55 UTC |