Subject: | HTML::StripScripts removes text content when content is '0' |
Date: | Wed, 4 Nov 2009 14:42:08 -0800 |
To: | bug-html-stripscripts [...] rt.cpan.org |
From: | Jim Laney <jim.laney [...] gmail.com> |
When the content of any tag is '0', HTML::StripScripts removes the content.
To reproduce:
use HTML::StripScripts;
my $hss = HTML::StripScripts->new({ Context => 'Inline' });
$hss->input_start_document;
$hss->input_start('<i>');
$hss->input_text('0');
$hss->input_end('</i>');
$hss->input_end_document;
warn $hss->filtered_document; # output is '<i></i>'
Thanks, Jim