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: 
why not use twig's truncate or wordwrap filter? It belongs to [twig extensions](https://github.com/fabpot/Twig-extensions) and lib is part of Symfony2.0 as i see.

```
{{ text|truncate(50) }}

```
@olegkhuss solution with named UTF-8 Elipsis:
`{{ (my.text|length > 50 ? my.text|slice(0, 50) ~ '…' : my.text) }}`