Question: How can I limit the length of the text, e.g., 50, and put three dots in the display?

```
{% if myentity.text|length > 50 %}

{% block td_text %} {{ myentity.text}}{% endblock %}

{%endif%}

```

Answer: 
@olegkhuss solution with named UTF-8 Elipsis:
`{{ (my.text|length > 50 ? my.text|slice(0, 50) ~ '…' : my.text) }}`
In addition to Nemo64's comment under olegkhuss's [response](https://stackoverflow.com/a/13143106/7058317), I'd like to add that if you need to make the partial text to finishes on a word not a character, u can do this:

```
entity.text|split(' ', 11)|length > 10 ? entty.text|split(' ', 11)|slice(0, 10)|join(' ') ~ '…' : entity.text

```

In this example, all text with more than 10 words will be cuted after the 10th word.