w3c advise using
<br> in HTML4.01 and not
<br /> (while it validates as strict it generates a warning).
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>