We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2489720 commit 1619b1fCopy full SHA for 1619b1f
src/jquery.multiselect.js
@@ -152,7 +152,13 @@
152
153
// has this optgroup been added already?
154
if($.inArray(optLabel, optgroups) === -1) {
155
- html += '<li class="ui-multiselect-optgroup-label ' + parent.className + '"><a href="#">' + optLabel + '</a></li>';
+ var optLabelEscaped = optLabel.replace(/&/g, '&')
156
+ .replace(/>/g, '>')
157
+ .replace(/</g, '<')
158
+ .replace(/'/g, ''')
159
+ .replace(/\//g, '/')
160
+ .replace(/"/g, '"');
161
+ html += '<li class="ui-multiselect-optgroup-label ' + parent.className + '"><a href="#">' + optLabelEscaped + '</a></li>';
162
optgroups.push(optLabel);
163
}
164
0 commit comments