Crate html_helpers

Crate html_helpers 

Source

Structs§

Elem
Represents a simplified HTML element, suitable for serialization.

Enums§

Error

Functions§

decode_html_entities
Decodes HTML entities (e.g., &lt; becomes <). Re-exporting from the original slimmer or using html-escape directly.
select
Selects HTML elements based on a list of CSS selectors and returns them as a list of Elem. The selectors are combined with a comma, effectively performing an “OR” match. Elements are returned in document order.
slim
Strips non-content elements from the provided HTML content using the scraper crate, preserving essential head tags, and returns the cleaned HTML as a string.

Type Aliases§

Result