Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Removing text between HTML tags

by choroba (Cardinal)
on Sep 15, 2014 at 09:57 UTC ( [id://1100577]=note: print w/replies, xml ) Need Help??


in reply to Removing text between HTML tags

Use a proper HTML handling tool. XML::LibXML can handle HTML if it follows the standard decently. I usually use its wrapper XML::XSH2, in which you can extract the text simply as
open :F html input.html ; for //p echo .//text() ;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found