Property Binding with Special Characters
-
Jennifer Häfner
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
Has successfully completed the online course Advanced (310)
Has successfully completed the online course Advanced (320)
Has successfully completed the Intermediate Certification
Has successfully completed the Advanced Certification
Kahn
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
mgerber
4 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;
}
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.