Function askama_shared::filters::linebreaks[][src]

pub fn linebreaks(s: &Display) -> Result<String>

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>.