Skip to content

Prevent Shortcuts from removing the XML response tags? #385

Answered by Waboodoo
charlesboc asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,
The response.body will actually give you the raw response body as a string. It doesn't remove any tags, so it should already work for what you are trying to achieve. I think the confusion here might stem from the fact that the alert / showDialog function (which I assume you probably used to inspect the response) interprets its input as HTML (or, a subset thereof). As such, it will not display any of the XML tags that aren't also valid HTML tags that it supports, leading to rather useless and confusing output. The content of response.body itself however still contains the tags. You can verify this by using the logEvent(response.body) function, which will create an entry in the Event…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@charlesboc
Comment options

Answer selected by charlesboc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants