function strip_data($text) { $quotes = array ("alert", "xss", '"', "'", "`", "<!", "<", ">" ); $goodquotes = array ("-", "+", "#" ); $repquotes = array ("\-", "\+", "\#" ); $text = trim( strip_tags( $text ) ); $text = str_replace( $quotes, '', $text ); $text = str_replace( $goodquotes, $repquotes, $text ); в этой строке $text = preg_replace(" +", " ", $text);ошибка return $text; }