Trim comments

This commit is contained in:
Vadim Burtsev 2019-12-19 16:27:15 +02:00
parent cfd3b530ab
commit d73702e5cc
1 changed files with 1 additions and 0 deletions

View File

@ -353,6 +353,7 @@ class Template extends Render
*/
private function _appendText($text)
{
$text = preg_replace('/<!--(.|\s)*?-->/', '', $text);
$this->_line += substr_count($text, "\n");
$strip = $this->_options & Fenom::AUTO_STRIP;
if ($this->_filters) {