title

Function title 

Source
pub fn title(input: &str) -> Result<String, Error>
Expand description

Returns the plain-text title of the document.

The title is assumed to be the first top-level heading, stripped from any formatting. This can be useful, for example to write the title of a document to an HTML <title> element.