[Templating] enabled escaping only when the renderer is php
This commit is contained in:
parent
f11d539420
commit
d7c83571ff
@ -64,10 +64,14 @@ class Engine extends BaseEngine
|
||||
{
|
||||
++$this->level;
|
||||
|
||||
list(, $options) = $this->splitTemplateName($name);
|
||||
if ('php' === $options['renderer'])
|
||||
{
|
||||
// escape only once
|
||||
if (1 === $this->level && !isset($parameters['_data'])) {
|
||||
$parameters = $this->escapeParameters($parameters);
|
||||
}
|
||||
}
|
||||
|
||||
$content = parent::render($name, $parameters);
|
||||
|
||||
|
Reference in New Issue
Block a user