Hi federica.
The substr function causes errors with Cyrillic characters.
Example: Вашему вниманию предлагается полное собрание сочинен�
It's better to use the mb_substr function.
Please replace in the file "components/com_abook/layouts/category/item.php"
this code:
<?php echo substr(strip_tags($item->description), 0, 100);?>
with this code:
<?php echo mb_substr(strip_tags($item->description), 0, 100, 'UTF-8') . '...';?>
I found this Joomla core function. Try this code.
<?php echo HTMLHelper::_('string.truncate', strip_tags($item->description), 100,true, false ); ?>
Let me know it is ok.
Quote from: federica on 22 July 2024, 18:50:39<?php echo HTMLHelper::_('string.truncate', strip_tags($item->description), 100,true, false ); ?>
This code works without errors.
I will publish a new beta version as soon as possible.