Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Mojo::DOM doesn't include marked-up text in an element's text

by marto (Cardinal)
on Apr 23, 2020 at 11:10 UTC ( [id://11115940]=note: print w/replies, xml ) Need Help??


in reply to Re: Mojo::DOM doesn't include marked-up text in an element's text
in thread Mojo::DOM doesn't include marked-up text in an element's text

"What do you mean by "complete text"?"

What anonymous said below, the method Cody Fendant should have used to get the combined text for all descending nodes is all_text, rather than text, so

print $e->text,$/;

becomes

print $e->all_text,$/;

Very handy, even for one liners/ojo use.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-23 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found