Text::Markup::HTML(3pm)

Text::Markup::HTML3pm

Html parser for text::markup

Usage

  use Text::Markup;
  my $html = Text::Markup->new->parse(file => 'hello.html');

Overview

This is the HTML <https://whatwg.org/html/> parser for Text::Markup. All it does is read in the HTML file and return it as a string. It makes no assumptions about encoding, and returns the string raw as read from the file, with no decoding. It recognizes files with the following extensions as HTML:

.html
.htm
.xhtml
.xhtm

To change it the files it recognizes, load this module directly and pass a regular expression matching the desired extension(s), like so:

  use Text::Markup::HTML qr{hachetml};

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10
  3. 11–12
  4. 13

Author

David E. Wheeler <[email protected]>

From libtext-markup-perl 0.33-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.