From 3c4192ebf6a32e30cdd23a9644c2ceca72a006fa Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 7 Jul 2022 01:47:50 +0300 Subject: Fix message html entities escaping when sending to Telegram (#1855) --- bridge/telegram/telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/telegram/telegram.go') diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 25225416..43cb818f 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -101,7 +101,7 @@ func (b *Btelegram) Send(msg config.Message) (string, error) { } if b.GetString("MessageFormat") == HTMLFormat { - msg.Text = makeHTML(msg.Text) + msg.Text = makeHTML(html.EscapeString(msg.Text)) } // Delete message -- cgit v1.2.3