Web::Microformats2::Parser - Read Microformats2 information from HTML
An object of this class represents a Microformats2 parser.
See Web::Microformats2 for further context and purpose.
$parser = Web::Microformats2::Parser->new;
Returns a parser object.
$doc = $parser->parse( $html, %args );
Pass in a string containing HTML which itself contains Microformats2 metadata, and receive a Web::Microformats2::Document object in return.
The optional args hash recognizes the following keys:
A URI object or URI-shaped string that will be used as a context for transforming all relative URL properties encountered within MF2 tags into absolute URLs.
The default value is http://example.com, so you'll probably want to set this to something more interesting, such as the absolute URL of the HTML that we are parsing.
http://example.com
Jason McIntosh (jmac@jmac.org)
This software is Copyright (c) 2018 by Jason McIntosh.
This is free software, licensed under:
The MIT (X11) License
To install Web::Microformats2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::Microformats2
CPAN shell
perl -MCPAN -e shell install Web::Microformats2
For more information on module installation, please visit the detailed CPAN module installation guide.