Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: HTML::Treebuilder Special characters

by jai_dgl (Beadle)
on Sep 17, 2009 at 09:20 UTC ( [id://795822]=note: print w/replies, xml ) Need Help??


in reply to Re^2: HTML::Treebuilder Special characters
in thread HTML::Treebuilder Special characters

This function helped me to solve the issue
sub encode_entities_decimal { my $text = shift; $text =~ s{([^\0-\x7f])}{sprintf("&#%d;",ord($1))}ge; $text; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found