Closed Falcosc closed 2 years ago
Thanks for the report. I can confirm this bug. It also happens while using /
and other special characters which need to be encoded if put into an XML structure. The Kleinanzeigen API works using XML syntax, this is why encoding is important here. But honestly I was not able to figure out so far how to fix this behavior.
I am open for any suggestions.
Sounds strange, I thought about accidentally double escaping.
Probably not worth investigating this minor this, but if you like the challenge, here are some more ways to escape characters:
This stackoverflow post confirms my thought that CDATA could work: https://www.w3.org/TR/REC-xml/#sec-cdata-sect
If it is a tag value instead of a attribute value then " doesn't need escaping at all https://www.liquid-technologies.com/XML/EscapingData.aspx
Fixed with release v0.7.0
. Get it here https://github.com/exislow/kleinanzeigen-magic/releases/tag/v0.7.0
If you push the ad up, it will recreate the offering totally fine (great job!) But " is not handled correctly and does not get unescaped during ad creation.
This is a "Test"
This is a "Test"
Expected title:
This is a "Test"
Actual title:This is a "Test"