Am 18.08.2020 um 13:29 schrieb Christian Grün:
response. In the Reddit documentation, I found this:
response body encoding For legacy reasons, all JSON response bodies currently have <, >, and & replaced with <, >, and &, respectively. If you wish to opt out of this behaviour, add a raw_json=1 parameter to your request.
Yes, I was aware of that, but I assumed, `fn:serialize` would take care of this. It seems I have to revisit https://www.w3.org/TR/xslt-xquery-serialization-31/
You could try two things:
- specify "...?raw_json=1" in your URL,
- unescape the three entities in a subsequent step:
I have chosen the second one, as per your example. Nice use of the string constructor, btw.
Thanks a lot!