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}
You can limit in following way. First is starting index and second is number of characters.
**{{ results['text'][4:2] }}**