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