[common] Fix error when clicking on next review in mobile
This commit is contained in:
parent
f221d2202e
commit
ed70fe9442
|
@ -587,7 +587,7 @@ Common.Utils.String = new (function() {
|
||||||
},
|
},
|
||||||
|
|
||||||
htmlEncode: function(string) {
|
htmlEncode: function(string) {
|
||||||
return !!_ ? _.escape(string) :
|
return (typeof _ !== 'undefined') ? _.escape(string) :
|
||||||
string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue