Handle ampersands in messages correctly, fixes #43

This commit is contained in:
Sebastian J. Wolf 2020-10-03 20:04:32 +02:00
parent 9eb396c9ca
commit 873c9b2669
2 changed files with 2 additions and 1 deletions

View file

@ -58,7 +58,7 @@ TRANSLATIONS += translations/harbour-fernschreiber-de.ts \
translations/harbour-fernschreiber-zh_CN.ts
# Use armv7hl for most devices and i486 for emulator and Jolla Tablet. Can most certainly be automated... ;)
TARGET_ARCHITECTURE = i486
TARGET_ARCHITECTURE = armv7hl
INCLUDEPATH += $$PWD/tdlib/include
DEPENDPATH += $$PWD/tdlib/include

View file

@ -124,6 +124,7 @@ function enhanceMessageText(formattedText) {
var messageText = formattedText.text;
messageText = messageText.replace("<", "&lt;");
messageText = messageText.replace(">", "&gt;");
messageText = messageText.replace("&", "&amp;");
var messageInsertions = [];
for (var i = 0; i < formattedText.entities.length; i++) {