всё, ненадо..
-----
$text = htmlentities($res['desc'], ENT_QUOTES, 'UTF-8');
$text = preg_replace('#\[c\](.*?)\[/c\]#si', '<div class="quote">\1</div>', $text);
$text = str_replace("\r\n", "<br/>", $text);
вот всё это в 4.4 заменяет одна функция public static function checkout ?