The synopsis has this code:
my $scrubber = HTML::Scrubber->new( allow => [ qw[ p b i u hr br ] ] );
print $scrubber->scrub('<p><b>bold</b> <em>missing</em></p>');
# output is: <p><b>bold</b> </p>
However, the output still contains the missing text contrary to the comment.
Any modules out there that will remove the tag as well as the content?
The synopsis has this code:
However, the output still contains the
missingtext contrary to the comment.Any modules out there that will remove the tag as well as the content?