Тема: знаки r/n/ вместо
? (WAP/WEB мастеру/Помощь мастерам) DrFaust (3 Oct 2015 в 19:34) up SimptomFD (3 Oct 2015 в 22:23) Через какую функцию выводишь текст? DrFaust (4 Oct 2015 в 11:12) SimptomFD, вроди function rez_text( $text, $symbols = 100) { $symbols = (int)$symbols; if( strlen( $text) <= $symbols) return $text; $pos = strpos( $text, \' \', $symbols); return substr( $text, 0, (int)$pos); } Zed (4 Oct 2015 в 11:33) --Цитата-- DrFaust (4 Oct 2015 в 11:12): SimptomFD, вроди function rez_text( $text, $symbols = 100) { $symbols = (int)$symbols; if( strlen( $text) <= $symbols) return $text; $pos = strpos( $text, \' \', $symbols); return substr( $text, 0, (int)$pos); } ---------- DrFaust, это точно? DrFaust (4 Oct 2015 в 12:45) Zed, где-то здесь должна быть DrFaust (8 Oct 2015 в 11:03) ап ishanoff (9 Oct 2015 в 17:06) Попробуй так: $text=nl2br($text); DrFaust (9 Oct 2015 в 18:45) ishanoff, что? ishanoff (9 Oct 2015 в 19:45) DrFaust, это функция пхп заменит твои n-r на br DrFaust (9 Oct 2015 в 19:56) ishanoff, спасибо это я и без вас понимаю. [i]Добавлено:[/i] закройте тему! Источник: http://www.dcms-social.ru/forum/20/44/60255/