Created
June 23, 2017 01:52
-
-
Save diegok/2d01cfcc73b98bfb56b880efce92c14e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm.... is it an expected behaviour?