Using perl, haw can I get the HTML off a web page I've downloaded?

tim85a

New member
I wanna save a web page I've got in $contents but I don't want all the HTML code and stuff, just the words eg. I want '<b>Can you help please?</b>' to be saved to a file as 'Can you help please?'. I know how to save, I just would like to know how to 'strip' the code off $contents? Thanks for your help.
 
Please do not reinvent the wheel. There have been THOUSANDS of people throughout history who have already done that. Try the HTML::FormatText module for starters...
 
Back
Top