pub fn parse_html(input: &str) -> Result<Vec<Node>, ParseError>Expand description
Parses the given HTML input string and returns a vector of Node objects or a ParseError.
§Arguments
input- A string slice that holds the HTML content to be parsed.
§Returns
Ok(Vec<Node>)if parsing is successful.Err(ParseError)if an error occurs during parsing.
§Grammar Rules
This function starts parsing from the html rule defined in grammar.pest.