Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[发布] 请教一个cutstr($thread[message])问题

[复制链接]
苦涩咖啡 发表于 2006-9-1 10:08:00 | 显示全部楼层 |阅读模式
我的本意是调用cdb_posts表message的字段内容
然后用
$thread[message] = cutstr($thread[message], 70);
来限制字符长度

但是有个问题。什么Discuz!代码,html等代码都限制,没有过滤这些代码,请问怎么过滤呢?
回复

使用道具 举报

魔焰男孩 发表于 2006-9-1 10:27:34 | 显示全部楼层
过滤 html: htmlspecialchars 或 dhtmlspecialchars
识别 discuz! code: discuzcode (include/discuzcode.func.php 文件里)
回复

使用道具 举报

 楼主| 苦涩咖啡 发表于 2006-9-1 10:51:11 | 显示全部楼层
过滤 html: htmlspecialchars 或 dhtmlspecialchars
??
不懂怎么用啊。麻烦说下
回复

使用道具 举报

qing-soft 发表于 2006-9-1 10:54:57 | 显示全部楼层
不懂, 一为占个AD位, 不要打我.
回复

使用道具 举报

meiguowindows 发表于 2009-2-1 00:16:21 | 显示全部楼层
见贴就会是一种礼貌
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-24 17:21 , Processed in 0.124316 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表