Fix HTML fallback in replies

Correctly encode the `body` to avoid problems down the line. We also convert newlines to `<br/>` to better represent the message as a fallback.

Fixes https://github.com/vector-im/riot-web/issues/9413
This commit is contained in:
Travis Ralston
2019-11-08 16:07:11 -07:00
parent 719709250b
commit bdcf3890a5
3 changed files with 15 additions and 3 deletions
+1
View File
@@ -72,6 +72,7 @@
"diff-match-patch": "^1.0.4",
"emojibase-data": "^4.0.2",
"emojibase-regex": "^3.0.0",
"escape-html": "^1.0.3",
"file-saver": "^1.3.3",
"filesize": "3.5.6",
"flux": "2.1.1",