/**
* 转换HTML代码函数
*
* @param unknown_type $content
* @param unknown_type $wrap 是否换行
*/
function htmlClean($content,$wrap = true) {
$content = htmlspecialchars($content);
if ($wrap) {
$content = str_replace("\n",'<br />',$content);
}
$content = str_replace(' ',' ',$content);
$content = str_replace("\t",' ',$content);
return $content;
}
/*** 来自编程之家 jb51.cc(jb51.cc) ***/