Project

General

Profile

Defect #33846 » sanitize_html_v3.patch

Marius BĂLTEANU, 2020-10-16 08:01

View differences:

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>';
}
(6-6/8)