4 use RT::Test nodb => 1, tests => undef;
5 use RT::Interface::Web; # This gets us HTML::Mason::Commands
9 my $html = '<div id="metadata"><span class="actions"><a>OH HAI</a></span></div><p>Moose</p>';
10 my $expected = '<div><span><a>OH HAI</a></span></div><p>Moose</p>';
11 is_string(scrub_html($html), $expected, "class and id are stripped");
15 return HTML::Mason::Commands::ScrubHTML(shift);