MessageMail::removePhp

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. MessageMail
  4. removePhp
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/sender/mail/messagemail.php
  • Класс: Bitrix\Sender\Integration\Sender\Mail\MessageMail
  • Вызов: MessageMail::removePhp
protected function removePhp($html)
{
	static $isCloud = null;
	if ($isCloud === null)
	{
		$isCloud = Integration\Bitrix24\Service::isCloud();
		Loader::includeModule('fileman');
	}

	if ($isCloud)
	{
		return Block\EditorMail::removePhpFromHtml($html);
	}

	return $html;
}

Добавить комментарий