D
D
Diversia2017-08-23 07:37:52
1C-Bitrix
Diversia, 2017-08-23 07:37:52

How to replace smiley symbols in the text with images in Bitrix?

Bitrix has a class for working with emoticons https://dev.1c-bitrix.ru/api_help/main/reference/c... but there is very little information. How to replace emoji codes with images in the text? Is there any built-in method or write your own, with regular expressions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Diversia, 2017-08-29
@Diversia

It turned out there is built-in support:

$obParser = new CTextParser;
$obParser->convertText($arElement['DETAIL_TEXT']),

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question