Scroll to navigation

Catmandu::Fix::html_filter_tag(3pm) User Contributed Perl Documentation Catmandu::Fix::html_filter_tag(3pm)

NAME

Catmandu::Fix::html_filter_tag - filter html tags

SYNOPSIS

   # keep only the meta tags information
   html_filter_tag(meta)
   # produces:
   # ---
   # html:
   #   - [S,html,{},[],<html>]
   #   - ...
   #   - [E,html,</html>]
   # group all attributes of the meta tags grouped by name
   html_filter_tag(meta,group_by:name)
   # produces:
   # ---
   # html:
   #  citation_author:
   #   content: Linda M. Scott
   #  citation_doi:
   #   content: 10.1353/asr.0.0023
   #  citation_fulltext_html_url:
   #   content: https://muse.jhu.edu/article/260988
   #  citation_issn:
   #   content: 1534-7311
   # {etc}

SEE ALSO

Catmandu::Fix

2023-02-11 perl v5.36.0