Function askama::filters::linebreaks

source ·
pub fn linebreaks<T>(s: T) -> Result<String, Error>
where T: Display,
Expand description

Replaces line breaks in plain text with appropriate HTML

A single newline becomes an HTML line break <br> and a new line followed by a blank line becomes a paragraph break <p>.