1.输出数据库中的html代码
{$info.content|html_entity_decode}
2.解决模版中文截取乱码
{$driver_info.truename|mb_substr=0,1,'utf-8'}
3.解决tp5,未定义变量,未定义数组索引文件
在config.php中首行加入以下代码
error_reporting(E_ERROR | E_WARNING | E_PARSE);
{$info.content|html_entity_decode}
{$driver_info.truename|mb_substr=0,1,'utf-8'}
在config.php中首行加入以下代码
error_reporting(E_ERROR | E_WARNING | E_PARSE);