We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a65c080 commit c0dd741Copy full SHA for c0dd741
1 file changed
select2.js
@@ -2442,16 +2442,15 @@ the specific language governing permissions and limitations under the Apache Lic
2442
escapeMarkup: function (markup) {
2443
var replace_map = {
2444
'\\': '\',
2445
- '&': '&#amp;',
2446
- '<': '&#lt;',
2447
- '>': '&#rt;',
2448
- '"': '&#quot;',
2449
- "'": ''',
2450
- "/": '/'
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ "'": ''',
+ "/": '/'
2451
};
2452
- //'--': '--'
2453
2454
- return String(html).replace(/[&<>"'/\\]/g, function (match) {
+ return String(markup).replace(/[&<>"'/\\]/g, function (match) {
2455
return replace_map[match[0]];
2456
});
2457
0 commit comments