use Mojo::DOM; my $dom = Mojo::DOM->new(); $|=1; my $test1=$dom->parse('<a class="ab">2016-05-18</a>')->at('a.ab')->tex +t; print "$test1\n"; my $test2=$dom->parse('<a class="a b">2016-05-18</a>')->at('a.a b')->t +ext; print "$test2\n";
In reply to How to obtain text in Mojo::DOM ? by Perl_Love
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |