use Mojo::DOM; my $dom = Mojo::DOM->new->parse($text); for ($dom->find('p.entry-summary')->each) { print $_->all_text; }