Просмотр поста

.
Windler
$text = htmlentities($text, ENT_QUOTES, 'UTF-8');
$text = str_replace("\r\n", "<br/>", $text);
$text = tags($text);

Можно сделать проще
$text = functions::checkout($res['text'], 1, 1);