Skip to main content

escape

Function escape 

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

HTML-escape the five characters that matter in text and attributes.

assert_eq!(asbuilt_core::docs::escape("a < b & \"c\""), "a &lt; b &amp; &quot;c&quot;");