diff options
Diffstat (limited to 'apps/files_external/js/settings.js')
-rw-r--r-- | apps/files_external/js/settings.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 2470cb4c60a..bd3bd0f5845 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -57,6 +57,14 @@ function highlightInput($input) { * @param {int} userListLimit page size for result list */ function addSelect2 ($elements, userListLimit) { + var escapeHTML = function (text) { + return text.toString() + .split('&').join('&') + .split('<').join('<') + .split('>').join('>') + .split('"').join('"') + .split('\'').join('''); + }; if (!$elements.length) { return; } |