Fix incorrectly espaced HTML for redaction reason

A redacted event with a reason containing problematic HTML characters,
e.g. "<test>" would render as literal escaped HTML, e.g. "&lt;test&gt;"
This commit is contained in:
miruka 2020-10-15 20:28:23 -04:00
parent f682e0e261
commit d4be4cca69

View File

@ -1313,7 +1313,7 @@ class MatrixClient(nio.AsyncClient):
"%1's message was removed by %2" "%1's message was removed by %2"
if reason: if reason:
content = f"{content}, reason: {html.escape(reason)}" content = f"{content}, reason: {reason}"
return content return content