{% for post in posts %}
{{ post.getName() }}
{{ post.getDescription()|striptags|raw|replace({' ': ''})|slice(0, 300) ~ '...' }}
{% endfor %}