Все, это вкурил, тока одна хрень харит моя функция
function check($message) {
$message = str_replace("\\n", " ", $message);
$message = str_replace("\n", " ", $message);
$message = trim(" $message ");
$message = ereg_replace(" +"," ",$message);
$message = str_replace("$", "$$", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = str_replace("", "", $message);
$message = HtmlSpecialChars($message);
$message = str_replace("\"", """, $message);
$message = str_replace("|", "¦", $message);
$message = str_replace("'", "‘", $message);
$message = str_replace("\\", "", $message);
$message=addslashes($message);
return $message;
}
Изменил: Дмитрий (07.07.2010 / 15:06)