Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Help with HTML::Entities - decode_entities

by Your Mother (Archbishop)
on Jul 08, 2010 at 23:46 UTC ( [id://848782]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://848782]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-24 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found