From 0dbc0e58872fcfeaa8a165aaee62101264c402e2 Mon Sep 17 00:00:00 2001 From: "Sebastian J. Wolf" Date: Wed, 7 Oct 2020 23:14:02 +0200 Subject: [PATCH] Don't double-escape ampersand --- qml/js/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/js/functions.js b/qml/js/functions.js index 554820b..ccf66f0 100644 --- a/qml/js/functions.js +++ b/qml/js/functions.js @@ -122,9 +122,9 @@ MessageInsertion.prototype.toString = function insertionToString() { function enhanceMessageText(formattedText) { var messageText = formattedText.text; + messageText = messageText.replace("&", "&"); messageText = messageText.replace("<", "<"); messageText = messageText.replace(">", ">"); - messageText = messageText.replace("&", "&"); var messageInsertions = []; for (var i = 0; i < formattedText.entities.length; i++) {