Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

unescape-html module does not support HTML5 encodings #22

Open
Thracky opened this issue Jan 26, 2022 · 0 comments
Open

unescape-html module does not support HTML5 encodings #22

Thracky opened this issue Jan 26, 2022 · 0 comments

Comments

@Thracky
Copy link

Thracky commented Jan 26, 2022

The module used in MatrixMessageParser for converting escaped HTML characters to standard characters, unescape-html, does not support the unescaping of the HTML5 encoding of ' characters, '. Because other bridges may use this encoding (for example, matrix-appservice-irc, it results in messages being sent to discord with the HTML entity encoded ' still present.

It might make sense to use a more widely used module for this such as unescape that supports the HTML5 encoding and I can submit a PR for that if you agree with the change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant