Fix handling topics containing \n, \t or <text>

This commit is contained in:
miruka
2020-06-02 22:03:22 -04:00
parent 6772f14c24
commit a6529b040c
3 changed files with 7 additions and 2 deletions

View File

@@ -451,7 +451,7 @@ class NioCallbacks:
) -> None:
if ev.topic:
topic = HTML_PROCESSOR.filter(
ev.topic, inline=True, room_id=room.room_id,
plain2html(ev.topic), inline=True, room_id=room.room_id,
)
co = f"%1 changed the room's topic to \"{topic}\""
else: