[common] Edit utils

This commit is contained in:
JuliaSvinareva 2021-02-12 02:29:22 +03:00
parent 9444e39ff0
commit c541a5023f

View file

@ -572,7 +572,8 @@ Common.Utils.String = new (function() {
},
htmlEncode: function(string) {
return _.escape(string);
//return _.escape(string);
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
},
htmlDecode: function(string) {