What's the mb_substr() equivalent?

Viewed 27

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

0 Answers
Related