Please take a look at the following line of PHP code:
<?php echo mb_substr($logged_text, 0, 12, "utf-8"); ?>
How can I write it using Twig?
There is a type of filter in Twig named slice, but I want a thing that handles utf-8
Please take a look at the following line of PHP code:
<?php echo mb_substr($logged_text, 0, 12, "utf-8"); ?>
How can I write it using Twig?
There is a type of filter in Twig named slice, but I want a thing that handles utf-8