HTML-HTML5-Outline

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DESCRIPTION
    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

586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
The 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 )