Help for this page

Select Code to Download


  1. or download this
      use HTML::TreeBuilder;
    
    ...
        $t->as_HTML
      }
    
  2. or download this
      sub strip_a_elements
      {
    ...
        $t->as_HTML
      }
    
  3. or download this
      # remember that HTML::TreeBuilder inherits from HTML::Element.
      sub HTML::Element::strip_elements
    ...
      # and call it:
      my $html_minus_links = strip_a_elements( $html );