Content deleted Content added
No edit summary |
No edit summary |
||
Line 15:
var mytxt2 = document.getElementById('wpTextbox1').value;
// Remove {PAGENAME}, {BASEPAGENAME}, ...
mytxt = mytxt.replace(/\{\{(?:PAGENAME|BASEPAGENAME|FULLPAGENAME|CURRENTYEAR)\}\}/g, '');
// Replace some braces
mytxt = mytxt.replace(/([^\{])\{([^\{])/g, '$1{$2');
Line 56:
mytxt = mytxt.replace(/([^\{])\{\{(?:[^{}]|\{\{[^{}]*\}\})*\}\}/gm, '$1');
mytxt = mytxt.replace(/\{\{(?:[^{}]|\{\{[^{}]*\}\})*\}\}([^\}])/gm, '$1');
}
loopcount++;
|