CCrmInstantEditorHelper::RenderTextArea

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmInstantEditorHelper
  4. RenderTextArea
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_component_helper.php
  • Класс: \CCrmInstantEditorHelper
  • Вызов: CCrmInstantEditorHelper::RenderTextArea
static function RenderTextArea(&$arParams)
{
	if(!is_array($arParams))
	{
		return;
	}

	$fieldID = isset($arParams['FIELD_ID']) ? $arParams['FIELD_ID'] : '';
	$value = isset($arParams['VALUE']) ? htmlspecialcharsbx($arParams['VALUE']) : '';
	//Convert NL, CR chars to BR tags
	$value = str_replace(array("\r", "\n"), '', nl2br($value));

	echo str_replace(
		array(
			'#VALUE#',
			'#NAME#'
		),
		array(
			$value,
			$fieldID
		),
		self::$TEMPLATES['TEXT_AREA']
	);
}

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