Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Mojo::DOM
- use v5.24;
- # Example of Mojo::DOM (7.33) mungling whitespaces
- my $dom = Mojo::DOM->new('<div><h1>This is<span> Just Some Test</span></h1></div>');
- say $dom->content; # <div><h1>This is<span>Just SomeTest</span></h1></div>
- say $dom->at('h1')->all_text # This isJust SomeTest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement