my $dom = Mojo::DOM->new($HTML); my $text = $dom->all_text();