HTML-Normalize

 view release on metacpan or  search on metacpan

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

Create a new C<HTML::Normalize> instance.

    my $norm = HTML::Normalize->new ();

=over 4

=item I<-compact>: optional

Setting C<< -compact => 1 >> suppresses generation of 'optional' close tags.
This reduces the sizeof the output slightly at the expense of breaking any hope
of XHTML compliance.

=item I<-default>: optional - multiple

Define a default attribute for an element. Default attributes are removed if the
attribute value has not been overridden in a parent node. For element such as
'font' this may result in the element being removed if no attributes remain.

C<-default> takes a string of the form 'tag attribute=value' as an argument.
For example:



( run in 0.671 second using v1.01-cache-2.11-cpan-87723dcf8b7 )