Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated HTML5 entities in Mojo::Util
  • Loading branch information
kraih committed Apr 26, 2012
1 parent beb02d6 commit 56be730
Show file tree
Hide file tree
Showing 6 changed files with 2,263 additions and 2,357 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@ This file documents the revision history for Perl extension Mojolicious.

2.91 2012-04-26
- Added cookies method to Mojo::Message.
- Updated HTML5 entities in Mojo::Util.
- Improved documentation.

2.90 2012-04-25
Expand Down
13 changes: 13 additions & 0 deletions examples/ncr.pl
@@ -0,0 +1,13 @@
use FindBin;
use lib "$FindBin::Bin/../lib";
use Mojo::Base -strict;

# "She's built like a steakhouse, but she handles like a bistro!"
use Mojo::UserAgent;

# Extract named character references from HTML5 spec
Mojo::UserAgent->new->get('http://dev.w3.org/html5/spec/single-page.html')
->res->dom("#named-character-references-table tbody > tr")
->each(sub { say $_->at("td > code")->text, $_->children("td")->[1]->text });

1;

0 comments on commit 56be730

Please sign in to comment.