A
A
advancess2020-07-28 09:49:19
1C-Bitrix
advancess, 2020-07-28 09:49:19

How to limit the number of characters of the "HTML/text" property of the Bitrix infoblock?

I display the property of the Bitrix infoblock in the following way:

<?=$arItem["PROPERTIES"]["REW_TEXT"]["~VALUE"]["TEXT"]?>


How to limit the number of characters?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
advancesss, 2020-07-28
@advancesses

<?=TruncateText($arItem["PROPERTIES"]["REW_TEXT"]["~VALUE"]["TEXT"], 300);?>

M
mbhusty, 2020-07-28
@mbhusty

for example here
namely for HTML/text there is a comment there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question