tp5.1 nl2br使用

tp5.1中模板使用{$str|nl2br}调用nl2br不好用,直接显示<br />
使用如下方式则可以:
{php} echo nl2br($str);{/php}
点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注