ammonia

Function is_html

Source
pub fn is_html(input: &str) -> bool
Expand description

Determine if a given string contains HTML

This function is parses the full string into HTML and checks if the input contained any HTML syntax.

ยงNote

This function will return positively for strings that contain invalid HTML syntax like <g> and even Vec::<u8>::new().