Missing global replacement of encoded ampersands
authorAlexander Ebert <ebert@woltlab.com>
Sun, 3 Nov 2019 15:37:23 +0000 (16:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 3 Nov 2019 15:37:23 +0000 (16:37 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js

index 26237a4206f379675da618462f3ba34309f8c0d6..8b5688a3522ea3e7b04adcb6e4c823edf8b13d8e 100644 (file)
@@ -17,7 +17,7 @@ $.Redactor.prototype.WoltLabClean = function() {
                                // restore ampersands
                                //html = html.replace(/@@@WCF_AMPERSAND@@@/g, '&amp;');
                                html = html.replace(/&amp;WCF_AMPERSAND&(amp;)?/g, '&amp;');
-                               html = html.replace(/@@@WCF_LITERAL_AMP@@@/, '&amp;amp;');
+                               html = html.replace(/@@@WCF_LITERAL_AMP@@@/g, '&amp;amp;');
                                
                                var div = elCreate('div');
                                div.innerHTML = html;