一个急需处理的问题,大家关注,谢谢 $text=ereg_replace(" (?:\W)"," ",$text); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $text=ereg_replace(" "," nbsp;",,$text);注意这里后面的空格是特殊性字符是双字节的,支持换行... $str=preg_replace("/<br>/i","",$str);$str=stripslashes($str);$str=str_replace('<','<',$str);$str=str_replace('>','>',$str);$str=str_replace(" "," ",$str);$str=str_replace("\r","<BR>",$str);$str=preg_replace("/\s/"," ",$str);用上面的就行了。 ╔════════════╗╔════════════╗ ║⊙⊙中国项目交易在线⊙⊙║║⊙⊙生活情感世界社区⊙⊙║ ║ http://www.pc80.com ║║ http://love.pc80.com ║ ╚════════════╝╚════════════╝ 这问题的解决方法是function text_dowith($text){ $text=htmlspecialchars($text); $text=ereg_replace("\n","<br/>",$text); $text=ereg_replace(" "," ",$text); $text=addslashes($text); return $text;}自己搞定。 php socket 怎么传送XML格式的? php 上传问题 在线等哦 关于MySQL是否免费的问题 在网页中动态显示INPUT的值 php 自定义线程 停止问题 无法停止 求大神解答 如何将多个图片合成新的图片并命名? 100分求一个函数~ 在线播放与多线程断点下载问题 请教:$_POST[]和$_GET[] 高分求解,关于cookie的问题! 高手进来看看这段程序有哪些错误? php模板提速问题
注意这里后面的空格是特殊性字符是双字节的,支持换行...
$str=stripslashes($str);
$str=str_replace('<','<',$str);
$str=str_replace('>','>',$str);
$str=str_replace(" "," ",$str);
$str=str_replace("\r","<BR>",$str);
$str=preg_replace("/\s/"," ",$str);用上面的就行了。 ╔════════════╗╔════════════╗
║⊙⊙中国项目交易在线⊙⊙║║⊙⊙生活情感世界社区⊙⊙║
║ http://www.pc80.com ║║ http://love.pc80.com ║
╚════════════╝╚════════════╝
function text_dowith($text)
{
$text=htmlspecialchars($text);
$text=ereg_replace("\n","<br/>",$text);
$text=ereg_replace(" "," ",$text);
$text=addslashes($text);
return $text;
}
自己搞定。