Function ammonia::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().