Skip to main content

escape

Function escape 

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

Escapes HTML-sensitive ASCII characters in a string.

Ampersands, angle brackets, both quote characters, and backticks are replaced with entity references. Existing entity references are escaped again.