BUG#93 Fix handling of <nowiki> in templates
authorJens Frank <jeluf@users.mediawiki.org>
Sat, 18 Sep 2004 23:14:07 +0000 (23:14 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sat, 18 Sep 2004 23:14:07 +0000 (23:14 +0000)
includes/Parser.php

index 6af5994..346487e 100644 (file)
@@ -1695,6 +1695,7 @@ class Parser
                        # Add a new element to the templace recursion path
                        $this->mTemplatePath[$part1] = 1;
 
+                       $text = $this->strip( $text, $this->mStripState );
                        $text = $this->removeHTMLtags( $text );
                        $text = $this->replaceVariables( $text, $assocArgs );
 
@@ -1722,7 +1723,8 @@ class Parser
                $inputArgs = end( $this->mArgStack );
 
                if ( array_key_exists( $arg, $inputArgs ) ) {
-                       $text = $this->removeHTMLtags( $inputArgs[$arg] );
+                       $text = $this->strip( $inputArgs[$arg], $this->mStripState );
+                       $text = $this->removeHTMLtags( $text );
                        $text = $this->replaceVariables( $text, array() );
                }