Merge pull request #22647 from nextcloud/fix/noid/depcreated-methods-settings
fix use of removed escapeHTML in settings.js
This commit is contained in:
commit
b4729ce142
|
@ -8,6 +8,15 @@ OC.Settings = _.extend(OC.Settings, {
|
|||
|
||||
_cachedGroups: null,
|
||||
|
||||
escapeHTML: function (text) {
|
||||
return text.toString()
|
||||
.split('&').join('&')
|
||||
.split('<').join('<')
|
||||
.split('>').join('>')
|
||||
.split('"').join('"')
|
||||
.split('\'').join(''');
|
||||
},
|
||||
|
||||
/**
|
||||
* Setup selection box for group selection.
|
||||
*
|
||||
|
@ -75,10 +84,10 @@ OC.Settings = _.extend(OC.Settings, {
|
|||
callback(selection);
|
||||
},
|
||||
formatResult: function(element) {
|
||||
return escapeHTML(element.displayname);
|
||||
return self.escapeHTML(element.displayname);
|
||||
},
|
||||
formatSelection: function(element) {
|
||||
return escapeHTML(element.displayname);
|
||||
return self.escapeHTML(element.displayname);
|
||||
},
|
||||
escapeMarkup: function(m) {
|
||||
// prevent double markup escape
|
||||
|
|
Loading…
Reference in New Issue