elm.utilities.parse.resembles_html

resembles_html(text)[source]

Check if text resembles HTML

Parameters:

text (str) – Input text which may be plaintext or HTML.

Returns:

boolTrue if the text resembles HTML, False otherwise.