This commit is contained in:
Abdulkadir Furkan Şanlı
2026-04-16 12:09:40 +02:00
parent cba7a701bf
commit 98e2683b80
+2 -1
View File
@@ -4,6 +4,7 @@
import argparse
import asyncio
import datetime
import html
import os
import pickle
import re
@@ -313,7 +314,7 @@ async def message_callback(conn, cursor, youtube, client, room, event):
# Escape HTML characters to prevent broken rendering in Matrix
escaped_text = html.escape(plain_text)
html_text = f"<em><font color='#808080'>{escaped_text}</font></em>"
html_text = f"<em><span data-mx-color='#808080'>{escaped_text}</span></em>"
await client.room_send(
room_id=room.room_id,