Loading...
Помощь по скриптам | Помогите с функцией

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;
}

выдает ошибку
Warning: preg_replace(): No ending delimiter '+' found in
https://stackoverflow.com/questions/30164229/warning-preg-re...imiter-found

Новая ошибка
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 0 in
Онлайн: 3
Время:
Gen. 0.0738
(c) Bym.Guru 2010-2026