- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/textparser.php
- Класс: CTextParser
- Вызов: CTextParser::wrap_long_words
public function wrap_long_words($text = '')
{
if ($this->maxStringLen > 0 && !empty($text))
{
$text = str_replace([chr(11), chr(12), chr(34), chr(39)], ["", "", chr(11), chr(12)], $text);
$text = preg_replace_callback("/(?<=^|>)([^<]+)(?=<|$)/is" . BX_UTF_PCRE_MODIFIER, [$this, "partWords"], $text);
$text = str_replace([chr(11), chr(12)], [chr(34), chr(39)], $text);
}
return $text;
}