Skip to content

html_text getting entities wrong #2450

Open
@GabrielRF

Description

@GabrielRF

Steps to reproduce

1: Create a bot with:

@bot.message_handler(func=lambda message: True)
def echo_message(message):
    bot.reply_to(
        message,
        f'{message.html_text}',
        parse_mode='HTML'
    )

2: Send to the bot:

<blockquote>
<b>bold</b> <i>italic</i> <b><i>bold and italic</b></i>
</blockquote>

3: It will reply:

<b><i><blockquote>
bold italic bold and italic
</blockquote></b></i>

Image

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions