parent
2f40f0093a
commit
20b07ff147
|
@ -456,7 +456,7 @@ impl<'gc> XmlNode<'gc> {
|
|||
result.push_byte(b' ');
|
||||
result.push_str(&key);
|
||||
result.push_str(WStr::from_units(b"=\""));
|
||||
result.push_str(WStr::from_units(value.as_bytes()));
|
||||
result.push_utf8(&value);
|
||||
result.push_byte(b'"');
|
||||
}
|
||||
|
||||
|
@ -480,7 +480,7 @@ impl<'gc> XmlNode<'gc> {
|
|||
let value = self.0.read().node_value.unwrap();
|
||||
let value = value.to_utf8_lossy();
|
||||
let value = escape(&value);
|
||||
result.push_str(WStr::from_units(value.as_bytes()));
|
||||
result.push_utf8(&value);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
<test />
|
||||
I'm a <b>text node</b>!
|
||||
<продукция>Название_Name</продукция>
|
||||
<test><test2 /></test>
|
||||
I'm a <b>text node</b>!
|
||||
<продукция>Название_Name</продукция>
|
||||
<test><test2>"Test" Node 2</test2></test>
|
||||
I'm a <b>text node</b>!
|
||||
<продукция>Название_Name</продукция>
|
||||
<newNodeName><test><test2>"Test" Node 2</test2></test>
|
||||
I'm a <b>text node</b>!</newNodeName>
|
||||
I'm a <b>text node</b>!
|
||||
<продукция>Название_Name</продукция></newNodeName>
|
||||
<продукция>Название_Name</продукция>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue