mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
PHRAS-3056 #comment fix on search user #time 2h
This commit is contained in:
@@ -271,9 +271,10 @@
|
||||
|
||||
<script>
|
||||
function htmlEncode(str) {
|
||||
console.log(str);
|
||||
if (str != null) {
|
||||
return str.replace(/[&"'<>]/g, function (c) {
|
||||
switch (c)
|
||||
{
|
||||
switch (c) {
|
||||
case "&":
|
||||
return "&";
|
||||
case "'":
|
||||
@@ -287,4 +288,6 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
return ;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user