![]() |
|
|
|||||||
![]() |
PERL - How to use HTML::Parser to remove HTML tags and print result |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I am trying to use HTML:
(including comments, etc.), replace all ENTITIES (e.g. &), and put the result into a variable as a string. I figure HTML: somehow preform the filtering, but how do I get it back as a string? I'd appreciate some sample code if anyone has any. Sorry if this is a real n00b question. Thanks a lot, Mitchua Mitchua |
|
|
|
|
#2 |
|
Posts: n/a
|
"Mitchua" <> wrote in message news > I am trying to use HTML: tags > (including comments, etc.), replace all ENTITIES (e.g. &), and put the > result into a variable as a string. I figure HTML: > somehow preform the filtering, but how do I get it back as a string? I'd > appreciate some sample code if anyone has any. Sorry if this is a real n00b > question. > > Thanks a lot, > Mitchua Try this for a sample of parsing a webpage http://www.wdvl.com/Authoring/Langua...ummarizer.html If you are just trying to remove all the html tags, you could just do this $webpage =~ s/<.*?>//g; Ice Demon http://adult-xxx-newsgroups.com http://adult-cybergames.com http://adult-spider.com |
|