mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-25 02:43:11 +00:00
PHRAS-3056 #comment fix on search user #time 2h
This commit is contained in:
@@ -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 "&";
|
return "&";
|
||||||
case "'":
|
case "'":
|
||||||
@@ -287,4 +288,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return ;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user