CC: | Andy Lester <andy [...] petdance.com> |
Subject: | Segfault with HTML::Tidy - trying to send the HTML stuff |
Date: | Sun, 30 Sep 2007 23:10:01 -0700 |
To: | Andy Lester <bug-html-tidy [...] rt.cpan.org> |
From: | J and T <j_and_t [...] hotmail.com> |
Hello Andy,
The previous post is not allowing for the HTML to show in the "$content" variable so I am trying to use entities to see if that will work. Hoping....
HTML::Tidy - Version 1.08
HTML::Tidy::Message - Version 1.08
Perl v5.8.8 built for i386-linux-thread-multi
OS: Fedora 7 and CentOS 5
libtidy-0.99.0-12.20070228.fc7
tidy-0.99.0-12.20070228.fc7
libtidy-devel-0.99.0-12.20070228.fc7
libtidy-0.99.0-12.20070228.el5.centos
tidy-0.99.0-12.20070228.el5.centos
libtidy-devel-0.99.0-12.20070228.el5.centos
I can make HTML::Tidy segfault every time. Here's my perl source. The "$content" validates perfectly with the validator.w3.org:
<--snip-->
#!/usr/local/bin/perl
use HTML::Tidy;
$content = <<"end_of_html";
Hello
end_of_html
my $tidy = HTML::Tidy->new();
$tidy->ignore( type => TIDY_WARNING );
$tidy->parse( '', $content );
for my $message ( $tidy->messages ) {
print $message->as_string;
}
<--snip-->
$ perl tidy_test.pl
Segmentation fault
Hope you have a fix or an idea of how to fix it,
John
Show quoted text
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx