Help for this page

Select Code to Download


  1. or download this
    use strict;
    use HTML::OOMarkupRemover;
    ...
    $hsmr->passes_rules($some_html)
      or die "Ack! I can't cope!";
    my $clean_html = $htmr->apply_rules($some_html);
    
  2. or download this
    use strict;
    use HTML::ProceduralMarkupRemover;
    ...
    html_passes_rules($some_html, \%html_rules)
      or die "Ack! I can't cope!";
    my $clean_html = apply_html_rules($come_html, \%html_rules);