From 52d7d75bf6107d5e337de05138105980d3a91312 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 5 Oct 2016 17:25:52 +0200 Subject: [PATCH] Fixed ampersands not being restored inside code tags --- .../files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 2b8fc71d20..4f287512bf 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -35,9 +35,6 @@ $.Redactor.prototype.WoltLabClean = function() { var div = elCreate('div'); var replacements = {}; - // fix ampersands being replaced - html = html.replace(/&/g, '@@@WCF_AMPERSAND@@@'); - if (html.indexOf('\u200B<\/p>/g, '


'); + // fix ampersands being replaced + html = html.replace(/&/g, '@@@WCF_AMPERSAND@@@'); + html = mpOnSync.call(this, html); // restore ampersands -- 2.20.1