Index: Preprocessor_Hash.php =================================================================== --- Preprocessor_Hash.php (revision 59439) +++ Preprocessor_Hash.php (working copy) @@ -961,8 +961,12 @@ # OT_WIKI will only respect in substed templates. # The other output types respect it unless NO_IGNORE is set. # extractSections() sets NO_IGNORE and so never respects it. - if ( ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) || ( $flags & self::NO_IGNORE ) ) { + if ( $flags & self::NO_IGNORE ) { $out .= $contextNode->firstChild->value; + } + # Add a strip marker in PST mode so that pstPass2() can run some old-fashioned regexes on the result + elseif ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) { + $out .= $this->parser->insertStripItem( $contextNode->firstChild->value ); } else { //$out .= ''; } Index: Preprocessor_DOM.php =================================================================== --- Preprocessor_DOM.php (revision 59439) +++ Preprocessor_DOM.php (working copy) @@ -1008,8 +1008,12 @@ # OT_WIKI will only respect in substed templates. # The other output types respect it unless NO_IGNORE is set. # extractSections() sets NO_IGNORE and so never respects it. - if ( ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) || ( $flags & self::NO_IGNORE ) ) { + if ( $flags & self::NO_IGNORE ) { $out .= $contextNode->textContent; + } + # Add a strip marker in PST mode so that pstPass2() can run some old-fashioned regexes on the result + elseif ( !isset( $this->parent ) && $this->parser->ot['wiki'] ) { + $out .= $this->parser->insertStripItem( $contextNode->textContent ); } else { $out .= ''; }