Ask a Question related to PERL Modules, Design and Development.
-
Mitchua #1
How to use HTML::Parser to remove HTML tags and print result
I am trying to use HTML::Parser to parse an HTML file, remove all HTML tags
(including comments, etc.), replace all ENTITIES (e.g. &), and put the
result into a variable as a string. I figure HTML::Parser itself can
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 Guest
-
remove html tags in string
I see that this cfset statement removes all HTML between the < > brackets. Is there a way to remove all HTML, except certain tags such as... -
HTML Parser
Try something like this. This does send any form information, but only gets the html markup of the page. If you want to send form or query data that... -
html character enities and other html tags in Contribute3.x
If you need support/integration of additional html character entities and other html tags in Contribute 3.x, please let Macromedia know that you are... -
HTML-Parser-3.35
"Brad Olin" <bwo@bwo1.com> wrote in message news:qvmg001be5ge2qs9o23561il50urj0lcb5@4ax.com... Very puzzling. Are you sure you don't have LWP... -
HTML-Parser / SGML-Parser
Ok, silly question. I am writing a script to determine my router's WAN ip address and then to email me once an hour in case it changes. Currently... -
Ice Demon #2
Re: How to use HTML::Parser to remove HTML tags and print result
"Mitchua" <mitchua@yahoo.com> wrote in message
news:pvmQa.23629$lJd1.21048@news01.bloor.is.net.ca ble.rogers.com...tags> I am trying to use HTML::Parser to parse an HTML file, remove all HTMLn00b> (including comments, etc.), replace all ENTITIES (e.g. &), and put the
> result into a variable as a string. I figure HTML::Parser itself can
> 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 realTry this for a sample of parsing a webpage> question.
>
> Thanks a lot,
> Mitchua
[url]http://www.wdvl.com/Authoring/Languages/Perl/PerlfortheWeb/summarizer.html[/url]
If you are just trying to remove all the html tags, you could just do this
$webpage =~ s/<.*?>//g;
Ice Demon
[url]http://adult-xxx-newsgroups.com[/url]
[url]http://adult-cybergames.com[/url]
[url]http://adult-spider.com[/url]
Ice Demon Guest



Reply With Quote

