final output, not on save-time subst: transformations.
Fixes tests:
Running test pre-save transform: nowiki in subst (bug 1188)... PASSED
Running test pre-save transform: comment in subst (bug 1936)... PASSED
# Add a new element to the templace recursion path
$this->mTemplatePath[$part1] = 1;
- $text = $this->strip( $text, $this->mStripState );
- $text = Sanitizer::removeHTMLtags( $text );
+ if( $this->mOutputType == OT_HTML ) {
+ $text = $this->strip( $text, $this->mStripState );
+ $text = Sanitizer::removeHTMLtags( $text );
+ }
$text = $this->replaceVariables( $text, $assocArgs );
# Resume the link cache and register the inclusion as a link