Skip to main content

escape_html_literal

Function escape_html_literal 

Source
pub fn escape_html_literal(html: &str) -> String
Expand description

Escape an HTML document so it can be embedded as a Rust string literal.