wfsp has asked for the wisdom of the Perl Monks concerning the following question:
Does HTML::TreeBuilder have an option/attribute (via HTML::Element, HTML::Parser, etc.) that disables the XHTML style empty tags?
The only references I can find are about parsing rather than output.
#!/usr/local/bin/perl use strict; use warnings; use HTML::TreeBuilder; my $h = HTML::Element->new_from_lol( ['html', ['hr'], ['br'], ['img', {src => 'pic.jpg'}], ], ); print $h->as_HTML __DATA__ output: <html><hr /><br /><img src="pic.jpg" /></html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::TreeBuilder and HTML4.01 empty elements
by rhesa (Vicar) on Jul 09, 2008 at 11:54 UTC | |
|
Re: HTML::TreeBuilder and HTML4.01 empty elements
by Anonymous Monk on Jul 10, 2008 at 03:30 UTC |