Skip to content

Commit

Permalink
Use raw text instead of HTML for OpenProject bug details popover
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
atodorov committed Nov 9, 2023
1 parent 7bebf30 commit 0996fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trackers_integration/issuetracker/openproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}

0 comments on commit 0996fd1

Please # to comment.