SYNOPSIS

use Text::HTML::ExtractInfo 'extract_info';

my $tree = XML::LibXML->new->parse_html_string(
    $input,
    { recover => 2, encoding => 'UTF-8' }
);
say Dumper extract_info($tree, url => 'https://example.com' );
# {
#   title => '...',
#   external => {
#       image => [ 'https://example.com/img1.jpg', ... ],
#   }
# }

SEE ALSO

HTML::ExtractMeta - extract information from <META tags