• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar_event.php
  • Класс: CCalendarEvent
  • Вызов: CCalendarEvent::ParseText
static function ParseText($text = "", $eventId = 0, $arUFWDValue = [])
{
	if ($text)
	{
		if (!is_object(self::$TextParser))
		{
			self::$TextParser = new CTextParser();
			self::$TextParser->allow = array(
				"HTML" => "N",
				"ANCHOR" => "Y",
				"BIU" => "Y",
				"IMG" => "Y",
				"QUOTE" => "Y",
				"CODE" => "Y",
				"FONT" => "Y",
				"LIST" => "Y",
				"SMILES" => "Y",
				"NL2BR" => "Y",
				"VIDEO" => "Y",
				"TABLE" => "Y",
				"CUT_ANCHOR" => "N",
				"ALIGN" => "Y",
				"USER" => "Y"
			);
		}

		self::$TextParser->allow["USERFIELDS"] = self::getUFForParseText($eventId, $arUFWDValue);
		$text = self::$TextParser->convertText($text);
		$text = preg_replace("/
/i", "
", $text); } return $text; }