Sponsored Content
Full Discussion: WIPO Official Decision
Special Forums News, Links, Events and Announcements WIPO Official Decision Post 25733 by Neo on Sunday 4th of August 2002 11:29:34 AM
Old 08-04-2002
Thanks for posting the HTML version. Now, back to UNIX.COM forum life as usual and perhaps a few long peaceful Harley rides in the mountains Smilie
 

6 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

UNIX.COM -- X/Open WIPO UDRP Complaint

FYI: http://arbiter.wipo.int/domains/cases/2002/d0200-0399.html unix.com unix.net unix.org ... all domains under siege by X/Open ... (17 Replies)
Discussion started by: Neo
17 Replies

2. News, Links, Events and Announcements

UNIX.COM -- X/Open WIPO UDRP RESULTS !!!!

Just received word from our attorney..... UNIX.COM PREVAILS IN X/OPEN WIPO ACTION: (THE TRUE UNIX USERS OF THE WORLD WIN!!!!) Click to Download: WIPO Notice of Decision Click to Download: WIPO Administrative Decision (9 Replies)
Discussion started by: Neo
9 Replies

3. New to Unix. Which books should I read?

O'Reilly books - official link

Yesterday I saw a closed post by xramm which gave a link to O'Reilly online books. Vino closed it because of copyright issues. However, O'Reilly has a section on their website where you can read online copies of their own books - obviously not a copyright problem. Most are fairly old editions,... (0 Replies)
Discussion started by: rhfrommn
0 Replies

4. SuSE

Official Security anouncements

Hello, I'm looking for an official Mailing List/Rss Feed or what else regarding SLES security Anoucements. Does anybody know? (1 Reply)
Discussion started by: demwz
1 Replies

5. Red Hat

I need Rhce materials official

I want the pdfs of course official red hat Rhce. Thanks. (1 Reply)
Discussion started by: Ultralord
1 Replies

6. Red Hat

Tcpreplay package official download

Hi im looking for the official rpm of that package for redhat 7 all that i found is this: RPM RedHat EL 7 tcpreplay 4.1.0 x86_64 rpm is that the correct one? looks likes a fedora one (0 Replies)
Discussion started by: guy3145
0 Replies
HTML::Filter(3) 					User Contributed Perl Documentation					   HTML::Filter(3)

NAME
HTML::Filter - Filter HTML text through the parser NOTE
This module is deprecated. The "HTML::Parser" now provides the functionally of "HTML::Filter" much more efficiently with the the "default" handler. SYNOPSIS
require HTML::Filter; $p = HTML::Filter->new->parse_file("index.html"); DESCRIPTION
"HTML::Filter" is an HTML parser that by default prints the original text of each HTML element (a slow version of cat(1) basically). The callback methods may be overridden to modify the filtering for some HTML elements and you can override output() method which is called to print the HTML text. "HTML::Filter" is a subclass of "HTML::Parser". This means that the document should be given to the parser by calling the $p->parse() or $p->parse_file() methods. EXAMPLES
The first example is a filter that will remove all comments from an HTML file. This is achieved by simply overriding the comment method to do nothing. package CommentStripper; require HTML::Filter; @ISA=qw(HTML::Filter); sub comment { } # ignore comments The second example shows a filter that will remove any <TABLE>s found in the HTML file. We specialize the start() and end() methods to count table tags and then make output not happen when inside a table. package TableStripper; require HTML::Filter; @ISA=qw(HTML::Filter); sub start { my $self = shift; $self->{table_seen}++ if $_[0] eq "table"; $self->SUPER::start(@_); } sub end { my $self = shift; $self->SUPER::end(@_); $self->{table_seen}-- if $_[0] eq "table"; } sub output { my $self = shift; unless ($self->{table_seen}) { $self->SUPER::output(@_); } } If you want to collect the parsed text internally you might want to do something like this: package FilterIntoString; require HTML::Filter; @ISA=qw(HTML::Filter); sub output { push(@{$_[0]->{fhtml}}, $_[1]) } sub filtered_html { join("", @{$_[0]->{fhtml}}) } SEE ALSO
HTML::Parser COPYRIGHT
Copyright 1997-1999 Gisle Aas. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2013-03-25 HTML::Filter(3)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy