Skip to main content

is_html

Function is_html 

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

Detect whether content looks like HTML.

Examines the first 1024 characters for HTML markers: doctype declarations, <html>, <head>+<body>, XML processing instructions, or paired tags.