Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 8009f7c7283d3485496902864ab407df > files > 27

perl-HTML-Tidy-1.08-6.fc13.i686.rpm

#!/usr/bin/perl -Tw

use strict;
use warnings;
use Test::More tests => 3;

use HTML::Tidy;
my $html = do { local $/ = undef; <DATA>; };

my $tidy = HTML::Tidy->new;
isa_ok( $tidy, 'HTML::Tidy' );
$tidy->clean( $html );
isa_ok( $tidy, 'HTML::Tidy' );
pass( 'Cleaned OK' );

__DATA__
<form action="http://www.alternation.net/cobra/index.pl">
<td><input name="random" type="image" value="random creature" src="http://www.creaturesinmyhead.com/images/random.gif"></td>
</form>