html: Add note about errors in Html::parse docs

This commit is contained in:
Kévin Commaille 2023-08-25 13:23:58 +02:00 committed by Kévin Commaille
parent ba973c98f1
commit e4a46437c9

View File

@ -23,6 +23,9 @@ pub struct Html {
impl Html {
/// Construct a new `Html` by parsing the given string.
///
/// This is infallible, any error encountered while parsing the HTML is logged with
/// `tracing::debug!`.
pub fn parse(string: &str) -> Self {
let sink = Self::default();
let mut parser = parse_fragment(