protected function execute() {
$text = $this->text;
// Use Unix line endings, escape some wikitext stuff
- $text = str_replace( array( '<', '{{', '[[', "\r" ),
- array( '<', '{{', '[[', '' ), $text );
+ $text = str_replace( array( '<', '{{', '[[', '__', "\r" ),
+ array( '<', '{{', '[[', '__', '' ), $text );
// join word-wrapped lines into one
do {
$prev = $text;
array( 'Install <tag>', 'Install <tag>', 'Escaping <' ),
array( 'Install {{template}}', 'Install {{template}}', 'Escaping [[' ),
array( 'Install [[page]]', 'Install [[page]]', 'Escaping {{' ),
+ array( 'Install __TOC__', 'Install __TOC__', 'Escaping __' ),
array( 'Install ', "Install \r", 'Removing \r' ),
# Transform \t{1,2} into :{1,2}