Fix serialization issue with poorly defined attribute names

This commit is contained in:
Kenneth Gitere 2021-04-22 19:00:32 +03:00
parent 313041a109
commit b496abb576

View file

@ -103,6 +103,7 @@ pub fn serialize_to_xhtml<W: std::io::Write>(
let attrs_str = attrs let attrs_str = attrs
.map .map
.iter() .iter()
.filter(|(k, _)| &k.local != "\"")
.map(|(k, v)| { .map(|(k, v)| {
format!( format!(
"{}=\"{}\"", "{}=\"{}\"",