Function leptos_dom::escape_text

source ·
pub fn escape_text(text: &str) -> Cow<'_, str>
Expand description

Encodes strings to be used as text in HTML by escaping &, <, and >.