I need help with differences between production an...
# suitescript
d
I need help with differences between production and sandbox environments. In sandbox
renderer.renderAsString()
is escaping special characters (like
&
to
&
), but is not escaping them in production (which causes a "SSS_XML_DOM_EXCEPTION" error when you call
xml.validate(…)
). I'm using identical xml templates, and the same code (see below)
I can't
xml.escape(xmlStr)
, as this escapes everything, not just the values (all the gt/lt brackets
<>
) I've created a plaintext file here, but was originally creating/saving as an xml file. My only thought/fallback is to use a regex replace like:
Copy code
xmlStr.replaceAll(/&(?!amp;)/g, '&');
b
usually related to the company logo