mirror of
https://github.com/caronc/apprise.git
synced 2025-06-26 04:31:57 +02:00
Removed HTML escaping for Telegram TEXT handling (#383)
This commit is contained in:
parent
6eaa8e150d
commit
3938cd9ec3
@ -549,11 +549,6 @@ class NotifyTelegram(NotifyBase):
|
|||||||
|
|
||||||
else: # TEXT
|
else: # TEXT
|
||||||
payload['parse_mode'] = 'HTML'
|
payload['parse_mode'] = 'HTML'
|
||||||
|
|
||||||
# Escape content
|
|
||||||
title = NotifyTelegram.escape_html(title, whitespace=False)
|
|
||||||
body = NotifyTelegram.escape_html(body, whitespace=False)
|
|
||||||
|
|
||||||
payload['text'] = '{}{}'.format(
|
payload['text'] = '{}{}'.format(
|
||||||
'<b>{}</b>\r\n'.format(title) if title else '',
|
'<b>{}</b>\r\n'.format(title) if title else '',
|
||||||
body,
|
body,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user