We also need to escape the JS at this point
This commit is contained in:
@@ -640,6 +640,7 @@
|
|||||||
if ($selected.length > 0) {
|
if ($selected.length > 0) {
|
||||||
$selected.each(function() {
|
$selected.each(function() {
|
||||||
var catText = $(this).next('label').text();
|
var catText = $(this).next('label').text();
|
||||||
|
catText = $('<span>').text(catText).html();
|
||||||
$('<li class="selected">'+ catText +'</li>').appendTo($target);
|
$('<li class="selected">'+ catText +'</li>').appendTo($target);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user