From 5f64ffe9204b1c74eaf7f64f1919c14a71eb157a Mon Sep 17 00:00:00 2001 From: Dusan Date: Mon, 13 Nov 2023 15:23:44 +0100 Subject: [PATCH] '&'- encoding fix-change --- .../Resources/public/js/utilities/xmlRegReplace.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QuickTranslateBundle/Resources/public/js/utilities/xmlRegReplace.js b/src/QuickTranslateBundle/Resources/public/js/utilities/xmlRegReplace.js index 8018698..840c47b 100644 --- a/src/QuickTranslateBundle/Resources/public/js/utilities/xmlRegReplace.js +++ b/src/QuickTranslateBundle/Resources/public/js/utilities/xmlRegReplace.js @@ -20,7 +20,7 @@ function xmlRegReplace(xml, replaceBack = false) { .replace(/\r?\n|\r/g, " ") .replace(/ /g, " ") .replace(//g, "(br)") - .replace(/&/g, "AmP;") - .replace(/ & /g, "AmP;") + .replace(/&/g, "%26") + .replace(/&/g, "%26") .replace(/#/g, "(HaShTaG)"); }; \ No newline at end of file