Index: branches/5.0.x/core/kernel/nparser/nparser.php =================================================================== diff -u -r12808 -r12956 --- branches/5.0.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 12808) +++ branches/5.0.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 12956) @@ -1,6 +1,6 @@ ')) { + if ($this->SkipComments && (substr_count($tag_data[1][0], ''))) { $this->InsideComment = !$this->InsideComment; } Index: branches/5.0.x/core/kernel/nparser/ntags.php =================================================================== diff -u -r12734 -r12956 --- branches/5.0.x/core/kernel/nparser/ntags.php (.../ntags.php) (revision 12734) +++ branches/5.0.x/core/kernel/nparser/ntags.php (.../ntags.php) (revision 12956) @@ -1,6 +1,6 @@ Parser->SkipComments = false; + + return ''; } function Close($tag) { - return ''; + $this->Parser->SkipComments = true; + + return $this->Parser->Buffers[$this->Parser->Level]; } }