Fix broken attribute escaping

This commit is contained in:
Greg Johnston 2022-10-17 10:52:31 -04:00
parent 12cef2d94f
commit 3073368aee

View file

@ -537,7 +537,7 @@ fn attr_to_tokens(
(AttributeValue::Dynamic(value), Mode::Ssr) => { (AttributeValue::Dynamic(value), Mode::Ssr) => {
expressions.push(quote_spanned! { expressions.push(quote_spanned! {
span => leptos_buffer.push(' '); span => leptos_buffer.push(' ');
leptos_buffer.push_str(&leptos_dom::escape_attr(&{#value}.into_attribute(#cx).as_value_string(#name))); leptos_buffer.push_str(&{#value}.into_attribute(#cx).as_value_string(#name));
}); });
} }
(AttributeValue::Dynamic(value), _) => { (AttributeValue::Dynamic(value), _) => {