diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-10-07 22:58:00 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-10-07 23:06:42 +0200 |
commit | d0f18f4d9a943b87c88c560490f0640b86675ac1 (patch) | |
tree | fa683ab9aab463920ca3e222424dcc37071b189a /apps/files_external/js | |
parent | 3b82c6cc849f9b0f23d15aebc8dc280fbbd4d8ef (diff) | |
download | nextcloud-server-d0f18f4d9a943b87c88c560490f0640b86675ac1.tar.gz nextcloud-server-d0f18f4d9a943b87c88c560490f0640b86675ac1.zip |
Add local version of escapeHTML
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files_external/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; } |