matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
799 stars 151 forks source link

Replying to a Discord message with an apostrophe HTML encodes it on Discord #758

Open turt2live opened 2 years ago

turt2live commented 2 years ago

image

tomowad commented 2 years ago

This also occurs for all messages from IRC that contain apostrophes and are sent IRC > Matrix > Discord.

Miepee commented 2 years ago

Worth noting that it doesn't only happen with apostrophe but also other special characters as well like &. I'd assume that it uses formatted_body from the matrix message as the body for the Discord embed, which escapes certain special characters.

Sporiff commented 1 year ago

I've noticed this occurring with the following bridges:

However, it's not consistent. When I write a message containing an apostrophe on Telegram on my Mac, it comes through to Discord properly formatted. Some other Telegram users' messages break. With IRC, I've seen it break with the following clients:

But it seems to work fine with Palaver running on my iPhone. See attached screenshot showing a message from Palaver first, then a message from limechat.

Screenshot 2023-01-10 at 12 31 28