HTML::Element endtag generates end tags for and I’m using the following Perl code to traverse and format some HTML: