From e0a04b50405a649592f9bcc23f0386b9f3512ec4 Mon Sep 17 00:00:00 2001 From: Sam Splunks <72095718+samsplunks@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:33:17 +0000 Subject: [PATCH] Javascript escape of html entities in ticket title for the My Tickets view --- helpdesk/templates/helpdesk/my_tickets.html | 1 + 1 file changed, 1 insertion(+) diff --git a/helpdesk/templates/helpdesk/my_tickets.html b/helpdesk/templates/helpdesk/my_tickets.html index ab25a840..c411703b 100644 --- a/helpdesk/templates/helpdesk/my_tickets.html +++ b/helpdesk/templates/helpdesk/my_tickets.html @@ -35,6 +35,7 @@ window.addEventListener('load', function() $.get(endpoint, function(data) { $('#ticketsTable tbody').empty(); data.results.forEach(function(ticket) { + ticket.title = $('div').text(ticket.title).html(); $('#ticketsTable tbody').append(`