Function leptos_dom::escape_attr

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

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