handling xml with quotes escaped

Right now if the xml has quotes that are preceded with backslashes, the site does not recognize it as xml.

I am debugging code in ruby and when I do an xml request, the response is in this form

"<?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><feedMessageResponse><count>51</count><feed><id>0RWqSn8iuUFnoShnsm7Fjh2LaUslTu2nI</id><name>location</name><description>location</description><status>ACTIVE</status><usage>0</usage

It would be good for the site to detect this and convert it to normal text (replace \” to just β€œ and remove initial and ending quotes.

Right now is have to do β€œputs variable_with_xml” and then cut and paste that into the site.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board

πŸ“‘ json.pub

Date

About 1 year ago

Subscribe to post

Get notified by email when there are changes.