機能
関数 safe_convert($string, $html=0) { //単語フィルター
if ($html ==0) {
$string=htmlspecialchars($string, ENT_QUOTES );
$string=str_replace("<","<",$string );
$string=str_replace(">",">",$string) );
$string=str_replace("\", '\', $string);
} else {
$string=スラッシュを追加($string);
$string=str_replace("\\", '\', $string );
}
$string=str_replace("r","
",$string );
$string=str_replace("n","",$string);
$string=str_replace("t"," ",$string);
$string=str_replace(" "," ",$string);
$string=str_replace('|', '|', $string);
$string=str_replace("`","`",$string);
$string=str_replace("\","\",$string);
return $string;
}