Help for this page

Select Code to Download


  1. or download this
    use strict;
    use HTML::Tree;
    ...
    my $tree = HTML::Tree->new_from_content($html_from_lwp);
    my $description = $tree->look_down( "_tag", "div", "class", "text12");
    +  
    my $trimmed_text = $description->as_text();