{$t.content} 无法读取文章内容如何解决 迅睿框架 更新 2022-01-21 17:17:43 jianglei_31 模板标签里面{module catid=$catid order=updatetime page=1}{$t.content}{/module}{$t.content} 无法读取文章内容如何解决
去掉html标签:{dr_clearhtml($t['content'])}
去掉html标签再截10个字:{dr_strcut(dr_clearhtml($t['content']), 10, '...')}
去掉html标签只保留中文:{dr_html2text($t['content'], 1)}
去掉html标签只保留中文再截10个字:{dr_strcut(dr_html2text($t['content'], 1), 10, '...')}
(针对上面无效时的用法)普通输出:{dr_code2html($t['content'])}
(针对上面无效时的用法)去掉html标签:{dr_clearhtml(dr_code2html($t['content']))}
(针对上面无效时的用法)去掉html标签再截10个字:{dr_strcut(dr_clearhtml(dr_code2html($t['content'])), 10, '...')}
{/module}