1
0
forked from lug/matterbridge

Fix message html entities escaping when sending to Telegram (#1855)

This commit is contained in:
Alexander
2022-07-07 01:47:50 +03:00
committed by GitHub
parent e450e1c447
commit 3c4192ebf6
2 changed files with 12 additions and 3 deletions

View File

@@ -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