-
默认模板为{$info.content|raw} raw是显示HTML,但{$info.content}去掉也不管用。
网上使用的方法为{$info.content|html_entity_decode} 经测试不管用。
正确使用方法为:
{:html_entity_decode($info['content'])}
阅读全文
-
第一步 公共文件common.php创建msubstr方法,最新下新增:
/**
*+----------------------------------------------------------
* 字符串截取,支持中文和其他编码
*+----------------------------------------------------------
* @static
* @access public
*+----------------------------------------------------------
* @param string $str 需要转换的字符串
* @param string $lengt...阅读全文