This has to be really simple and dumb.... I am tr...
# suitescript
m
This has to be really simple and dumb.... I am trying to add an image to an XML doc and then convert that to a PDF file in SS 2.1 M/R. The PDF will not create because of the '&' in the URL of the image in the file cabinet. I realize I need to replace '&' with '&' I have tried getting the url.replace('&', '&') but the string is always the same. Also tried using the escapeXML() API to no avail. What am I doing wrong or is there a simpler way to add an image to a PDF in SS? Any thoughts? TIA.
c
%26
or use
urlencode
. Hard to tell without you sharing your code
n
also your replace will only be replacing the first occurrence if that's how you've coded it. @MoCheeks
m
ok, thank you both!