diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-10-09 09:25:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 09:25:05 +0200 |
commit | 2ec160aec8ec8d67e8cc42d9f2a83406768b7b6d (patch) | |
tree | 9463f2369e4447358fc2a4ac735b91d0163d2e06 /apps/files_external | |
parent | 049d5b3a4b8c52d14d3564f2499a4bc4bba8edb6 (diff) | |
parent | d0f18f4d9a943b87c88c560490f0640b86675ac1 (diff) | |
download | nextcloud-server-2ec160aec8ec8d67e8cc42d9f2a83406768b7b6d.tar.gz nextcloud-server-2ec160aec8ec8d67e8cc42d9f2a83406768b7b6d.zip |
Merge pull request #23264 from nextcloud/bug/23177/escape-html
Add local version of escapeHTML
Diffstat (limited to 'apps/files_external')
-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; } |