Skip to content

html_text getting entities wrong #2450

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions