_cachedGroups: null,
+ escapeHTML: function (text) {
+ return text.toString()
+ .split('&').join('&')
+ .split('<').join('<')
+ .split('>').join('>')
+ .split('"').join('"')
+ .split('\'').join(''');
+ },
+
/**
* Setup selection box for group selection.
*
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