如鹏网 大学生计算机学习社区

CowNew开源团队

http://www.cownew.com 邮件请联系 about521 at 163.com

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  363 随笔 :: 2 文章 :: 808 评论 :: 0 Trackbacks

修改discuzcode.func.php中discuzcode方法,
修改最后一行的return $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), $message));


 $tempstr= $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", '   ', '  '), array('        ', '   ', '  '), $message));
 $tempstr= str_replace(" "," ",$tempstr);//code标签在粘贴一些代码的时候会把一些空格替换成" "从而出现乱码,这是暂时性的解决策略,不严谨,不过一般没问题 by 杨中科
 return $tempstr;
 

posted on 2009-05-22 23:29 CowNew开源团队 阅读(276) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: