• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/task/emailnotification.php
  • Класс: BitrixTasksIntegrationIMNotificationTaskEmailNotification
  • Вызов: EmailNotification::getMessage
public function getMessage(): string
{
	$search = [];
	$replace = [];

	foreach($this->notification->getTemplates() as $template)
	{
		$search[] = $template->getSearch();
		$replace[] = $template->getReplace();
	}

	$preparedMessage = str_replace(
		$search,
		$replace,
		strip_tags($this->notification->getGenderMessage())
	);

	if ($this->notification->getTask()->hasDescriptionInBbcode())
	{
		$preparedMessage = str_replace(
			"t",
			'    ',
			(new CTextParser())->convertText($preparedMessage)
		);
	}

	return (new Link($this->notification->getTask(), $this->notification->getRecepient(), Link::MODE_EMAIL))
		->placeLinkAnchor($preparedMessage);
}