@ -161,6 +161,7 @@ utility = function () {
* @returns {*}
*/
publicMethods.encodeJson = function (text) {
if (text) {
return text
.replace(/\\u003c/g, "<")
.replace(/</g, "<")
@ -169,7 +170,10 @@ utility = function () {
.replace(/\\u0027/g, "'")
.replace(/'/g, "'")
.replace(/\\"/g, """)
.replace(/\\u0022/g, """)
.replace(/\\u0022/g, """);
} else {
return "";
}
};
return publicMethods;