0

I am sorting out issues in a smarty upgrade from 2 to 3 and I am getting this error and I can't figure out why:

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template {$item.content_group_name | htmlspecialchars} - Unexpected "|"

Anyone have any experience with this issue?

4

1 回答 1

0

如果 | 周围有空格,Smarty 3 会因该错误而失败。声明修饰符时的字符。将您的标签更改为

{$item.content_group_name|htmlspecialchars} 
于 2020-09-23T00:54:59.907 回答