mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-06 09:46:51 +02:00
Javascript escape of html entities in ticket title for the My Tickets view
This commit is contained in:
parent
b02e8d4162
commit
e0a04b5040
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user