mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 08:12:24 +00:00
xml: Fix unescaping for String values
This commit is contained in:
@@ -265,6 +265,7 @@ fn test_xml_cdata() {
|
||||
#[xml(ty = "text")]
|
||||
hello: String,
|
||||
href: String,
|
||||
okay: String,
|
||||
}
|
||||
|
||||
let doc = Document::parse_str(
|
||||
@@ -272,6 +273,7 @@ fn test_xml_cdata() {
|
||||
<document>
|
||||
<![CDATA[some text]]>
|
||||
<href><![CDATA[some stuff]]></href>
|
||||
<okay>></okay>
|
||||
</document>
|
||||
"#,
|
||||
)
|
||||
@@ -280,7 +282,8 @@ fn test_xml_cdata() {
|
||||
doc,
|
||||
Document {
|
||||
hello: "some text".to_owned(),
|
||||
href: "some stuff".to_owned()
|
||||
href: "some stuff".to_owned(),
|
||||
okay: ">".to_owned()
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user