/**
*escape special characters in a text
* @param textvalue
* @returns {*}
*/
function escapeSpecialChar1(textvalue) {
try {
textvalue = textvalue.replace(/&/g, '&');
// textvalue = textvalue.replace(/</g, '<');
// textvalue = textvalue.replace(/>/g, '>');
textvalue = textvalue.replace(/"/g, '"');
textvalue = textvalue.replace(/'/g, ''');
return textvalue;
} catch (e) {
log.error({
title: e.name,
details: e
});
}
}