Force raw on content

We don't want Symfony to escape html content
This commit is contained in:
Jeremy 2015-04-01 16:11:19 +02:00
parent 14d7a69b8c
commit 7d74a2f32b

View file

@ -17,13 +17,13 @@
<pubDate>{{ entry.createdAt|date('D, d M Y H:i:s') }}</pubDate> <pubDate>{{ entry.createdAt|date('D, d M Y H:i:s') }}</pubDate>
<description> <description>
<![CDATA[ <![CDATA[
{%- if entry.content| readingTime > 0 -%} {%- if entry.content|readingTime > 0 -%}
{% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min {% trans %}estimated reading time :{% endtrans %} {{ entry.content|readingTime }} min
{%- else -%} {%- else -%}
{% trans %}estimated reading time :{% endtrans %} &lt; 1 min {% trans %}estimated reading time :{% endtrans %} &lt; 1 min
{%- endif %} {%- endif %}
{{ entry.content -}} {{ entry.content|raw -}}
]]> ]]>
</description> </description>
</item> </item>