Fixed ampersand handling
authorAlexander Ebert <ebert@woltlab.com>
Tue, 29 Aug 2017 11:12:25 +0000 (13:12 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 29 Aug 2017 11:12:25 +0000 (13:12 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js

index cb7906e4a6c00e3f9b9e216dedcde1f66b788fc2..42695ddde3392ef64e9000a6c179e38d13c0d237 100644 (file)
@@ -16,7 +16,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(/&amp;WCF_AMPERSAND&(amp;)?/g, '&amp;');
                                html = html.replace(/@@@WCF_LITERAL_AMP@@@/, '&amp;amp;');
                                
                                var div = elCreate('div');