mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fix small bug for strip mode
Removing extra spaces in strip mode
This commit is contained in:
parent
fc188a5822
commit
cfd3b530ab
@ -376,7 +376,7 @@ class Template extends Render
|
|||||||
}
|
}
|
||||||
if ($strip) {
|
if ($strip) {
|
||||||
$text = preg_replace('/\s+/uS', ' ', str_replace(array("\r", "\n"), " ", $text));
|
$text = preg_replace('/\s+/uS', ' ', str_replace(array("\r", "\n"), " ", $text));
|
||||||
$text = str_replace("> <", "><", $text);
|
$text = str_replace("> <", "><", trim($text));
|
||||||
}
|
}
|
||||||
$this->_body .= $text;
|
$this->_body .= $text;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user