PHRAS-3056 #comment fix on search user #time 2h

This commit is contained in:
Harrys Ravalomanana
2020-05-08 12:30:54 +04:00
parent 030d01b037
commit afa8447804

View File

@@ -271,20 +271,23 @@
<script> <script>
function htmlEncode(str) { function htmlEncode(str) {
return str.replace(/[&"'<>]/g, function(c){ console.log(str);
switch (c) if (str != null) {
{ return str.replace(/[&"'<>]/g, function (c) {
case "&": switch (c) {
return "&amp;"; case "&":
case "'": return "&amp;";
return "&#39;"; case "'":
case '"': return "&#39;";
return "&quot;"; case '"':
case "<": return "&quot;";
return "&lt;"; case "<":
case ">": return "&lt;";
return "&gt;"; case ">":
} return "&gt;";
}); }
});
}
return ;
} }
</script> </script>