A
A
Anton2017-09-27 16:05:48
1C-Bitrix
Anton, 2017-09-27 16:05:48

How to display section description in HTML format in Bitrix?

<?
CModule::IncludeModule('iblock');
$dbSect = CIBlockSection::GetList(Array("SORT"=>"ASC"), Array("ID"=>$arResult["VARIABLES"]["SECTION_ID"], "<=LEFT_BORDER" => $arResult["LEFT_MARGIN"], ">=RIGHT_BORDER" => $arResult["RIGHT_MARGIN"]), true); 
if($arSect = $dbSect->GetNext()) {echo $arSect["DESCRIPTION"];}
?>

How to get the text formatting that is filled in the admin panel in the section description?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2017-09-27
@Rema1ns

in the field select add DESCRIPTION_TYPE

D
Dmitry, 2017-09-28
Maksyutenko @dibarboss

Try to get out of the key["~DESCRIPTION"]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question