• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/trackingservice.php
  • Класс: CBPTrackingService
  • Вызов: CBPTrackingService::parseStringParameter
static function parseStringParameter($string, $documentType = null, $htmlSpecialChars = true)
{
	if (!$documentType)
	{
		$documentType = ['', '', ''];
	}

	return preg_replace_callback(
		CBPActivity::ValueInlinePattern,
		static function ($matches) use ($documentType, $htmlSpecialChars)
		{
			return CBPAllTrackingService::parseStringParameterMatches(
				$matches,
				[$documentType[0], $documentType[1], $documentType[2]],
				$htmlSpecialChars
			);
		},
		$string
	);
}