Expand description
This module contains functions which parsees HTML string into a custom Node struct.
The Node struct is used to represent the HTML elements and their children in a tree-like structure.
With the safe_parse_html
function, malformed HTML will return an error instead of panicking.
The parse_html
function is a wrapper around safe_parse_html
that panics if the input is malformed. However, it is deprecated and will be removed in future versions.
Enums§
- Malformed
Attribute Error - Errors that will be returned when parsing malformed HTML attributes
- Malformed
TagError - Errors that will be returned when parsing malformed HTML tags
- ParseHTML
Error - Errors that can occur when parsing HTML
Functions§
- parse_
html Deprecated - Parses a string of HTML into a Node struct
- safe_
parse_ html - Safely parses a string of HTML into a Node struct