Skip to content

util

thml.util

Functions:

  • html_diffs

    Return the side-by-side HTML of the differences between text_a and text_b.

html_diffs(a: str, b: str) -> str

Return the side-by-side HTML of the differences between text_a and text_b.

Parameters:

  • a (str) –

    The first string.

  • b (str) –

    The second string.

Returns:

  • html ( str ) –

    The side-by-side HTML of the differences between text_a and text_b.