Skip to content

Commit

Permalink
another text method example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 21, 2016
1 parent e7a5f6d commit 74ff057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

7.0 2016-06-21
7.0 2016-06-22
- Code name "Nerd Face", this is a major release.
- Removed squish method from Mojo::ByteStream.
- Removed squish function from Mojo::Util.
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojo/DOM.pm
Expand Up @@ -862,6 +862,9 @@ Alias for L<Mojo::Base/"tap">.
Extract text content from this element only (not including child elements).
# "bar"
$dom->parse("<div>foo<p>bar</p>baz</div>")->at('p')->text;
# "foo\nbaz\n"
$dom->parse("<div>foo\n<p>bar</p>baz\n</div>")->at('div')->text;
Expand Down

0 comments on commit 74ff057

Please sign in to comment.