Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
4a383469a3
|
@ -587,7 +587,7 @@ Common.Utils.String = new (function() {
|
|||
},
|
||||
|
||||
htmlEncode: function(string) {
|
||||
return !!_ ? _.escape(string) :
|
||||
return (typeof _ !== 'undefined') ? _.escape(string) :
|
||||
string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue