HTML-TagParser

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

                print " $key=\"$attr->{$key}\"";
            }
            if ( $text eq "" ) {
                print " />\n";
            } else {
                print ">$text</$tagname>\n";
            }
        }

DESCRIPTION
    HTML::TagParser is a pure Perl module which parses HTML/XHTML files.
    This module provides some methods like DOM interface. This module is not
    strict about XHTML format because many of HTML pages are not strict. You
    know, many pages use <br> elemtents instead of <br/> and have <p>
    elements which are not closed.

METHODS
  $html = HTML::TagParser->new();
    This method constructs an empty instance of the "HTML::TagParser" class.

  $html = HTML::TagParser->new( $url );
    If new() is called with a URL, this method fetches a HTML file from
    remote web server and parses it and returns its instance. URI::Fetch

lib/HTML/TagParser.pm  view on Meta::CPAN

        }
        if ( $text eq "" ) {
            print " />\n";
        } else {
            print ">$text</$tagname>\n";
        }
    }

=head1 DESCRIPTION

HTML::TagParser is a pure Perl module which parses HTML/XHTML files.
This module provides some methods like DOM interface.
This module is not strict about XHTML format
because many of HTML pages are not strict.
You know, many pages use <br> elemtents instead of <br/>
and have <p> elements which are not closed.

=head1 METHODS

=head2 $html = HTML::TagParser->new();

This method constructs an empty instance of the C<HTML::TagParser> class.



( run in 0.691 second using v1.01-cache-2.11-cpan-119454b85a5 )