Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-10-09 10:25:05 +0300
committerGitHub <noreply@github.com>2020-10-09 10:25:05 +0300
commit2ec160aec8ec8d67e8cc42d9f2a83406768b7b6d (patch)
tree9463f2369e4447358fc2a4ac735b91d0163d2e06 /apps
parent049d5b3a4b8c52d14d3564f2499a4bc4bba8edb6 (diff)
parentd0f18f4d9a943b87c88c560490f0640b86675ac1 (diff)
Merge pull request #23264 from nextcloud/bug/23177/escape-html
Add local version of escapeHTML
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/js/settings.js8
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('&amp;')
+ .split('<').join('&lt;')
+ .split('>').join('&gt;')
+ .split('"').join('&quot;')
+ .split('\'').join('&#039;');
+ };
if (!$elements.length) {
return;
}