From 0996fd1a5035763b178437765e99ee675b3b63a0 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Thu, 9 Nov 2023 20:30:20 +0200 Subject: [PATCH] Use raw text instead of HTML for OpenProject bug details popover Closes #38. Note1: OpenProject supports markdown by default and the raw text will include markdown formatting characters. This looks slightly less aggravating than displaying the HTML code. Note2: Input from the outside world is always considered unsafe and RPC results are always HTML escaped due to security considerations. This will always look not-right even if we render back to plain text! --- trackers_integration/issuetracker/openproject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trackers_integration/issuetracker/openproject.py b/trackers_integration/issuetracker/openproject.py index 8866dab..e67d919 100644 --- a/trackers_integration/issuetracker/openproject.py +++ b/trackers_integration/issuetracker/openproject.py @@ -233,5 +233,5 @@ def details(self, url): status = issue["_embedded"]["status"]["name"].upper() return { "title": f"{status} {issue_type}: " + issue["subject"], - "description": issue["description"]["html"], + "description": issue["description"]["raw"], }