Skip to main content

escape

Function escape 

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

Escape &, <, >, ", and ' into HTML entities for manually assembled strings.

Prefer html! (maud! in slabs::prelude), which auto-escapes interpolated values at compile time.