title: symfony 2 twig limit the length of the text and put three dots
body: <p>How can I limit the length of the text, e.g., 50, and put three dots in the display?</p>
  
  <pre><code>{% if myentity.text|length &gt; 50 %}
  
  {% block td_text %} {{ myentity.text}}{% endblock %}
  
  {%endif%}
  </code></pre>