Treebuilder
HTML::TreeBuilder is a parser that builds a HTML syntax tree. SYNOPSIS foreach my $file_name (@ARGV) { my $tree = HTML::TreeBuilder->new; # empty tree $tree->parse_file($file_name); print "Hey, heres a dump of the parse tree of $file_name:n"; $tree->dump; # a method we inherit from...
Platforms: *nix
License: Freeware | Size: 122.88 KB | Download (114): HTML::TreeBuilder Download |
SYNOPSIS use HTML::TreeBuilder; use HTML::WikiConverter::Normalizer; my $tree = new HTML::TreeBuilder(); $tree->parse( text ); my $norm = new HTML::WikiConverter::Normalizer(); $norm->normalize($tree); # Roughly gives " text " print $tree->as_HTML(); HTML::WikiConverter dialects...
Platforms: *nix
License: Freeware | Size: 34.82 KB | Download (102): HTML::WikiConverter::Normalizer Download |
XML::Handler::Trees is a PerlSAX handlers for building tree structures. SYNOPSIS use XML::Handler::Trees; use XML::Parser::PerlSAX; my $p=XML::Parser::PerlSAX->new(); my $h=XML::Handler::Tree->new(); my $tree=$p->parse(Handler=>$h,Source=>{SystemId=>file.xml}); my...
Platforms: *nix
License: Freeware | Size: 7.17 KB | Download (100): XML::Handler::Trees Download |
HTML::Seamstress::Quickstart is a gentle introduction to HTML::Seamstress. Introduction This guide is designed to get you started with dynamically generating and modifying ("templating") HTML with HTML::Seamstress. We will work through several examples, with each one increasing your ability...
Platforms: *nix
License: Freeware | Size: 49.15 KB | Download (93): HTML::Seamstress::Quickstart Download |
HTML::Scrubber is a Perl extension for scrubbing/sanitizing html. SYNOPSIS #!/usr/bin/perl -w use HTML::Scrubber; use strict; # my $html = q[ BAD { background: #666; color: #666;} alert(Hello, I am EVIL!); a => link br => b => bold u => UNDERLINE ]; # my $scrubber =...
Platforms: *nix
License: Freeware | Size: 17.41 KB | Download (99): HTML::Scrubber Download |
HTML::Sanitizer is a HTML Sanitizer. SYNOPSIS my $safe = new HTML::Sanitizer; $safe->permit_only( qw/ strong em /, a => { href => qr/^(?:http|ftp):/, title => 1, }, img => { src => qr/^(?:http|ftp):/, alt => 1, }, b => HTML::Element->new(strong), ); $sanitized =...
Platforms: *nix
License: Freeware | Size: 9.22 KB | Download (104): HTML::Sanitizer Download |
Pod::HTML2Pod Perl module can translate HTML into POD. SYNOPSIS # Use the program html2pod that comes in this dist, or: use Pod::HTML2Pod; print Pod::HTML2Pod::convert( file => my_stuff.html, # input file a_href => 1, # try converting links ); Larry Wall once said (1999-08-27, on the...
Platforms: *nix
License: Freeware | Size: 18.43 KB | Download (92): Pod::HTML2Pod Download |
HTML::Tree::Scanning contains an article: "Scanning HTML". SYNOPSIS # This an article, not a module. The following article by Sean M. Burke first appeared in The Perl Journal #19 and is copyright 2000 The Perl Journal. It appears courtesy of Jon Orwant and The Perl Journal. This document...
Platforms: *nix
License: Freeware | Size: 112.64 KB | Download (93): HTML::Tree::Scanning Download |
HTML::Element::Library is a Perl module that provides API calls for common actions on trees when using HTML::Tree. SYNOPSIS use HTML::Element::Library; use HTML::TreeBuilder;
Platforms: *nix
License: Freeware | Size: 40.96 KB | Download (39): HTML::Element::Library Download |