html = html.replace(/\u200B/g, '');
// fix ampersands being replaced
- html = html.replace(/&/g, '@@@WCF_AMPERSAND@@@');
+ //html = html.replace(/&/g, '@@@WCF_AMPERSAND@@@');
+ html = html.replace(/&/g, '@@@WCF_LITERAL_AMP@@@');
+ html = html.replace(/&/g, '&WCF_AMPERSAND&');
html = mpOnSet.call(this, html);
// restore ampersands
- html = html.replace(/@@@WCF_AMPERSAND@@@/g, '&');
+ //html = html.replace(/@@@WCF_AMPERSAND@@@/g, '&');
+ html = html.replace(/&WCF_AMPERSAND&/g, '&');
+ html = html.replace(/@@@WCF_LITERAL_AMP@@@/, '&');
var div = elCreate('div');
div.innerHTML = html;
html = html.replace(/<p>\u200B<\/p>/g, '<p><br></p>');
// fix ampersands being replaced
- html = html.replace(/&/g, '@@@WCF_AMPERSAND@@@');
+ //html = html.replace(/&/g, '@@@WCF_AMPERSAND@@@');
+ html = html.replace(/&/g, '&WCF_AMPERSAND&');
html = mpOnSync.call(this, html);
// restore ampersands
- html = html.replace(/@@@WCF_AMPERSAND@@@/g, '&');
+ //html = html.replace(/@@@WCF_AMPERSAND@@@/g, '&');
+ html = html.replace(/&WCF_AMPERSAND&/g, '&');
div.innerHTML = html;