Expand description
The metatags module contains functions for generating meta tags.
Meta tag generation and extraction module.
This module provides functionality for generating HTML meta tags from metadata and extracting meta tags from HTML content.
Rendering follows the specifications the tags come from: Open Graph
(og:*, article:*, fb:*, profile:*, book:*, music:*,
video:*) uses the property attribute, everything else uses name,
and both attribute values go through crate::escape_attribute.
Structs§
- MetaTag
- One
<meta>element: its identifier and content. - Meta
TagGroups - Holds collections of meta tags for different platforms and categories.
Enums§
- Meta
Attribute - Which attribute carries a meta tag’s identifier.
Functions§
- extract_
meta_ tags html - Extracts
<meta>tags from HTML content in one streaming pass (featurehtml). - extract_
meta_ tags_ lenient html - Like
extract_meta_tags, but also reports where a malformed document stopped the scan (featurehtml). - generate_
metatags - Generates all meta tag groups from the given metadata.
- meta_
tags_ to_ hashmap - Converts a list of tags into a map from identifier to content.