mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-14 18:18:36 +02:00
Javascript escape of html entities in ticket title for the My Tickets view
This commit is contained in:
@ -35,6 +35,7 @@ window.addEventListener('load', function()
|
|||||||
$.get(endpoint, function(data) {
|
$.get(endpoint, function(data) {
|
||||||
$('#ticketsTable tbody').empty();
|
$('#ticketsTable tbody').empty();
|
||||||
data.results.forEach(function(ticket) {
|
data.results.forEach(function(ticket) {
|
||||||
|
ticket.title = $('div').text(ticket.title).html();
|
||||||
$('#ticketsTable tbody').append(`
|
$('#ticketsTable tbody').append(`
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
Reference in New Issue
Block a user