Working
- Allow to parse array and objects in Smarty Template
This commit is contained in:
@@ -102,7 +102,7 @@ class SmartyParser extends Smarty implements ParserInterface
|
||||
|
||||
public static function theliaEscape($content, $smarty)
|
||||
{
|
||||
if(!is_object($content)) {
|
||||
if(is_scalar($content)) {
|
||||
return htmlspecialchars($content ,ENT_QUOTES, Smarty::$_CHARSET);
|
||||
} else {
|
||||
return $content;
|
||||
|
||||
Reference in New Issue
Block a user