krille-chan / fluffychat

The cutest instant messenger in the [matrix]
https://fluffychat.im/
GNU Affero General Public License v3.0
1.14k stars 204 forks source link

XML '&' escapes get interpreted in input bar #1417

Open tomsmeding opened 4 hours ago

tomsmeding commented 4 hours ago

Bug Description

When typing XML-style & escapes such as &#65; in a chat, they get converted to the corresponding Unicode character. This is highly surprising because more common HTML features like <b> are not recognised and are sent as-is.

Inside code blocks (e.g. `&#65;`), XML-style escapes are already left as-is, fortunately.

Steps to Reproduce

Send &#65;. Observe that what gets actually sent is A.

Expected Behavior

Sends &#65;. :)

App Version

1.22.0

Additional Platform Information

Pixel 8, Android 15

Additional Context

No response

lieuwex commented 4 hours ago

FWIW: sending &#65; using Element Web sends &#65;, Element Android (don't know about Element X Android) sends A