Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^8: replace &

by Corion (Patriarch)
on Jun 04, 2009 at 08:19 UTC ( #768342=note: print w/replies, xml ) Need Help??


in reply to Re^7: replace &
in thread replace &

I don't get your problem. Maybe if you posted real code instead of a mishmash of unencoded and encoded entities outside of <code> tags, it would be clearer. The following code works as I expect it and seems to do what you want:

> perl -MHTML::Entities -le "print $HTML::Entities::VERSION; print enc +ode_entities('&foo foo')" 1.35 &amp;foo foo

Which would indicate to me that &foo foo does not look like any valid HTML entity.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2023-11-28 23:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?