alot
alot copied to clipboard
Keep ESC control characters in the message body
In order to bring back support for ANSI colored HTML renderings etc.
Fixes #1679
I addition to the minor code comment, I am not sure this is a great idea; I added some thoughts to the original discussion in #1679.
As an alternative to what I suggested in #1679, we could try to allowlist certain escape characters; e.g., those that change color and basic formatting. That said, we'd need to be quite careful with what we allow to ensure there's no security issue.
Proposed secure alternative to this PR: #1697