• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/text/htmlconverter.php
  • Класс: BitrixMainTextHtmlConverter
  • Вызов: HtmlConverter::decode
public function decode($text, $textType = '')
{
	if (is_object($text))
	{
		return $text;
	}

	$textType = Converter::initTextType($textType);
	if ($textType === Converter::HTML)
	{
		return $text;
	}

	if ($text === null)
	{
		return '';
	}

	return htmlspecialchars_decode($text);
}