I’m generating CSV data that includes URLs with multiple query parameters, so 
“&somekey” in them. These get serialized as “&somekey” where I want 
“&somekey”.


My CSV XML looks like this:

<record>
  <AppID>sn_admin_center</AppID>
  
<DocsURL>=HYPERLINK(https://docs.servicenow.com/csh?topicname=admin-center-intro&amp;version=vancouver)</DocsURL>
</record>

I’m then doing:

let $report := csv:serialize($csv, map{})
let $doWrite := file:write('/Users/eliot.kimber/temp/apps-to-topics.csv', 
$report)

To write the CSV file.


The resulting file looks like:

sn_admin_center,”=HYPERLINK(“"https://docs.servicenow.com/csh?topicname=admin-center-intro&amp;version=vancouver”";)"

Note that the “&” is still escaped.

Reviewing the docs for the CVS module and the serialize options, I don’t see 
any option that looks like it would control how escaping is handled.

Is there a way to do what I want?

Thanks,

E.
_____________________________________________
Eliot Kimber
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com<https://www.servicenow.com>
LinkedIn<https://www.linkedin.com/company/servicenow> | 
Twitter<https://twitter.com/servicenow> | 
YouTube<https://www.youtube.com/user/servicenowinc> | 
Facebook<https://www.facebook.com/servicenow>

Reply via email to