From 15fa263356fa1f8e01ac89237376fa092cd9c266 Mon Sep 17 00:00:00 2001 From: madmanmax Date: Sat, 22 Nov 2014 17:58:46 +0100 Subject: [PATCH] [fix] [issue #56] fixed the escaped HTML entities Wordpress already provides a truncated summary with a link to the post (Continue reading ->). so there no need to strip the tags, truncate the text and add a link to the post. --- .../SiteBundle/Resources/views/Default/_blog_posts.html.twig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Default/_blog_posts.html.twig b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Default/_blog_posts.html.twig index eb60431..301c353 100644 --- a/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Default/_blog_posts.html.twig +++ b/src/AmsterdamPHP/Bundle/SiteBundle/Resources/views/Default/_blog_posts.html.twig @@ -7,8 +7,7 @@

{{ post.title }}

- {{ post.description|striptags|truncate(250) }} - More + {{ post.description|raw }}

{% endfor %}