preg_replace('/\s[^\s]+$/', '', substr(strip_tags($arItem["PREVIEW_TEXT"]), 0, 40)).'...';
$obParser = new CTextParser;
if($arParams["PREVIEW_TRUNCATE_LEN"] > 0){
$arItem["PREVIEW_TEXT"] = $obParser->html_cut($arItem["PREVIEW_TEXT"], $arParams["PREVIEW_TRUNCATE_LEN"]);
}