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
    Thanks, Mom, for the help.

    Operats in place - right- OK, so I took it out, like this:

    _decode_entities($mystring, { amp => "&", 59 => ";" }, 0); print $mystring;
    but when $mystring = "Fred's shoe", I'm still getting "Fred's shoe" output.



    Time flies like an arrow. Fruit flies like a banana.