From 851c1bf938bc19d58be4ca3e0e9aac6ed7e295e9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 3 Nov 2019 16:37:23 +0100 Subject: [PATCH] Missing global replacement of encoded ampersands --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 26237a4206..8b5688a352 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -17,7 +17,7 @@ $.Redactor.prototype.WoltLabClean = function() { // restore ampersands //html = html.replace(/@@@WCF_AMPERSAND@@@/g, '&'); html = html.replace(/&WCF_AMPERSAND&(amp;)?/g, '&'); - html = html.replace(/@@@WCF_LITERAL_AMP@@@/, '&'); + html = html.replace(/@@@WCF_LITERAL_AMP@@@/g, '&'); var div = elCreate('div'); div.innerHTML = html; -- 2.20.1