mgerber
3 years ago
#24383
::
Problem solved:
The data is coming from an XML input, so the Special characters ar replaced in XML. A simple BO with a function solved my problem…
function replaceCharsFromXML(inpStr){
var outStr = inpStr.replace(/&/g, ‘&’);
outStr = outStr.replace(/"/g, ‘”‘);
outStr = outStr.replace(/</g, ‘<‘);
outStr = outStr.replace(/>/g, ‘>’);
outStr = outStr.replace(/'/g, ‘\”);
outStr = outStr.replace(/Ä/g, ‘Ä’);
outStr = outStr.replace(/Ö/g, ‘Ö’);
outStr = outStr.replace(/Ü/g, ‘Ü’);
outStr = outStr.replace(/ä/g, ‘ä’);
outStr = outStr.replace(/ö/g, ‘ö’);
outStr = outStr.replace(/ü/g, ‘Ü’);
outStr = outStr.replace(/ß/g, ‘ß’);
return outStr;
}