Defect #33846 » sanitize_html_v3.patch
| public/javascripts/application.js | ||
|---|---|---|
|
}
|
||
|
});
|
||
|
function sanitizeHTML(string) {
|
||
|
var temp = document.createElement('span');
|
||
|
temp.textContent = string;
|
||
|
return temp.innerHTML;
|
||
|
}
|
||
|
function checkAll(id, checked) {
|
||
|
$('#'+id).find('input[type=checkbox]:enabled').prop('checked', checked);
|
||
|
}
|
||
| ... | ... | |
|
selectTemplate: function (issue) {
|
||
|
return '#' + issue.original.id;
|
||
|
},
|
||
|
menuItemTemplate: function (issue) {
|
||
|
return sanitizeHTML(issue.original.label);
|
||
|
},
|
||
|
noMatchTemplate: function () {
|
||
|
return '<span style:"visibility: hidden;"></span>';
|
||
|
}
|
||