]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Force raw on content 1166/head
authorJeremy <j0k3r@users.noreply.github.com>
Wed, 1 Apr 2015 14:11:19 +0000 (16:11 +0200)
committerJeremy <j0k3r@users.noreply.github.com>
Wed, 1 Apr 2015 14:11:19 +0000 (16:11 +0200)
We don't want Symfony to escape html content

src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig

index f1039f5dd63d4937e547435caf6f64785e5492f8..5ec9bc03735a564729692d86510f4d49d127a98d 100644 (file)
                 <pubDate>{{ entry.createdAt|date('D, d M Y H:i:s') }}</pubDate>
                 <description>
                     <![CDATA[
-                    {%- if entry.content| readingTime > 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 %} &lt; 1 min
                     {%- endif %}
 
-                    {{ entry.content -}}
+                    {{ entry.content|raw -}}
                     ]]>
                 </description>
             </item>