#!/usr/bin/perl
use warnings;
use strict;
BEGIN {
eval q{
use HTML::TreeBuilder;
};
if ($@) {
eval q{use Test::More skip_all => "HTML::TreeBuilder not available"};
}
else {
eval q{use Test::More tests => 7};
}
use_ok("IkiWiki::Plugin::htmlbalance");
}
is(IkiWiki::Plugin::htmlbalance::sanitize(content => "
"), "
");
is(IkiWiki::Plugin::htmlbalance::sanitize(content => "
hello world
hello world