From: Jeremy Benoist Date: Thu, 4 Feb 2016 16:46:02 +0000 (+0100) Subject: Merge pull request #1642 from wallabag/v2-escape-preview X-Git-Tag: 2.0.0-beta.1~55 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=27c837dcd1640a7f5f0ed197e882eefd53ba8273;hp=-c;p=github%2Fwallabag%2Fwallabag.git Merge pull request #1642 from wallabag/v2-escape-preview Unescape content for Material card --- 27c837dcd1640a7f5f0ed197e882eefd53ba8273 diff --combined src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index c86b8d88,0c35de2d..8ad24fbf --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@@ -46,16 -46,17 +46,17 @@@ {% endif %} - {{ entry.title|raw|striptags|slice(0, 42) }} + {{ entry.title|striptags|slice(0, 42)|raw }} - {% if entry.readingTime > 0 %} -
{% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min
- {% else %} -
{% trans %}estimated reading time{% endtrans %}: < 1 min
- {% endif %} +
+ + {% trans %}estimated reading time{% endtrans %}: + {% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}< 1{% endif %} min + +
{% if entry.previewPicture is null %} -

{{ entry.content|striptags|slice(0, 300) }}…

+

{{ entry.content|striptags|slice(0, 300)|raw }}…

{% endif %} @@@ -65,13 -66,14 +66,14 @@@ {{ entry.title|raw }} - {% if entry.readingTime > 0 %} -
{% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min
- {% else %} -
{% trans %}estimated reading time{% endtrans %}: < 1 min
- {% endif %} +
+ + {% trans %}estimated reading time{% endtrans %}: + {% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}< 1{% endif %} min + +
-

{{ entry.content|striptags|slice(0, 300) }}…

+

{{ entry.content|striptags|slice(0, 300)|raw }}…

{% endif %} @@@ -99,13 -101,13 +101,13 @@@ {% endif %}

{% trans %}Export{% endtrans %}