HTML-HTML5-Outline
view release on metacpan or search on metacpan
1920212223242526272829303132333435363738DESCRIPTION
This is an implementation of the HTML5 Outline algorithm, as per
The module can output a JSON-friendly hashref, or an RDF model.
Constructor
*
"HTML::HTML5::Outline->new($html, %options)"
Construct a new outline.
$html
is the HTML to generate an outline
from, either as an HTML or XHTML string, or as an
XML::LibXML::Document object.
Options:
* default_language -
default
language to assume text is in
when
no
lang/xml:lang attribute is available. e.g.
'en-gb'
.
* element_subjects - rather advanced feature that doesn't bear
explaining. See USE WITH RDF::RDFA::PARSER
for
an example.
lib/HTML/HTML5/Outline.pm view on Meta::CPAN
586587588589590591592593594595596597598599600601602603604605606The module can output a JSON-friendly hashref, or an RDF model.
=head2 Constructor
=over
=item * C<< HTML::HTML5::Outline->new($html, %options) >>
Construct a new outline. C<< $html >> is the HTML to generate an outline from,
either as an HTML or XHTML string, or as an L<XML::LibXML::Document> object.
Options:
=over
=item * B<default_language> - default language to assume text is in when no
lang/xml:lang attribute is available. e.g. 'en-gb'.
=item * B<element_subjects> - rather advanced feature that doesn't bear
explaining. See USE WITH RDF::RDFA::PARSER for an example.
( run in 0.887 second using v1.01-cache-2.11-cpan-95122f20152 )