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. "<test>"
This commit is contained in:
parent
f682e0e261
commit
d4be4cca69
|
@ -1313,7 +1313,7 @@ class MatrixClient(nio.AsyncClient):
|
|||
"%1's message was removed by %2"
|
||||
|
||||
if reason:
|
||||
content = f"{content}, reason: {html.escape(reason)}"
|
||||
content = f"{content}, reason: {reason}"
|
||||
|
||||
return content
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user