From d4be4cca692a26145b48b9bd52040d120ef61364 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 15 Oct 2020 20:28:23 -0400 Subject: [PATCH] Fix incorrectly espaced HTML for redaction reason A redacted event with a reason containing problematic HTML characters, e.g. "" would render as literal escaped HTML, e.g. "<test>" --- src/backend/matrix_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/matrix_client.py b/src/backend/matrix_client.py index 3276fa71..b681d4fb 100644 --- a/src/backend/matrix_client.py +++ b/src/backend/matrix_client.py @@ -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