From 7d74a2f32b55fa9c33f5ecff57785e8d9e4de8ae Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 1 Apr 2015 16:11:19 +0200 Subject: Force raw on content We don't want Symfony to escape html content --- src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig index f1039f5d..5ec9bc03 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig @@ -17,13 +17,13 @@ {{ entry.createdAt|date('D, d M Y H:i:s') }} 0 -%} - {% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min + {%- if entry.content|readingTime > 0 -%} + {% trans %}estimated reading time :{% endtrans %} {{ entry.content|readingTime }} min {%- else -%} {% trans %}estimated reading time :{% endtrans %} < 1 min {%- endif %} - {{ entry.content -}} + {{ entry.content|raw -}} ]]> -- cgit v1.2.3