HTML-Normalize

 view release on metacpan or  search on metacpan

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

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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.812 second using v1.01-cache-2.11-cpan-95122f20152 )