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

Re: Extract text from HTML

by osama (Scribe)
on Dec 29, 2002 at 20:56 UTC ( #222958=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # THIS IS BAD
    s/(\s|\ )+/ /g;
    s/<(BR|P)>/\n/ig;
    s/<.+?>//g;
    
  2. or download this
    use HTML::TokeParser;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2023-06-10 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (36 votes). Check out past polls.

    Notices?