• Модуль: tasksmobile
  • Путь к файлу: ~/bitrix/modules/tasksmobile/lib/TextFragmentParser.php
  • Класс: BitrixTasksMobileTextFragmentParser
  • Вызов: TextFragmentParser::parseLists
private function parseLists(string $text): string
{
	if (
		preg_match_all("/[LIST.*]((?:.|n)*)[/LIST]/U", $text, $matches)
		&& !empty($matches)
	)
	{
		foreach ($matches[0] as $index => $search)
		{
			$replace = str_replace('[*]', '', $matches[1][$index]);
			$text = str_replace($search, $replace, $text);
		}
	}

	return $text;
}