Skip to main content

text_to_html

Function text_to_html 

Source
pub fn text_to_html(input: &str) -> String
Expand description

Converts plain text to HTML: <, > and & are escaped, line breaks become <br/>, carriage returns are dropped, and the result is wrapped in <html><body>.