Skip to main content

diff_html

Function diff_html 

Source
pub fn diff_html<'a>(
    old_html: &'a StrTendril,
    new_html: &'a StrTendril,
) -> Result<Vec<Patch<'a>>, DiffError>
Expand description

Diff two HTML tendrils and return DOM patches.

Parses both HTML inputs and diffs them. Patches borrow from the tendrils’ buffers (zero-copy).