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,9 +271,10 @@
<script> <script>
function htmlEncode(str) { function htmlEncode(str) {
console.log(str);
if (str != null) {
return str.replace(/[&"'<>]/g, function (c) { return str.replace(/[&"'<>]/g, function (c) {
switch (c) switch (c) {
{
case "&": case "&":
return "&amp;"; return "&amp;";
case "'": case "'":
@@ -287,4 +288,6 @@
} }
}); });
} }
return ;
}
</script> </script>