mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-05 23:18:47 +00:00
Merge pull request #1642 from wallabag/v2-escape-preview
Unescape content for Material card
This commit is contained in:
commit
27c837dcd1
1 changed files with 15 additions and 13 deletions
|
@ -46,16 +46,17 @@
|
||||||
<i class="card-title grey-text text-darken-4 activator mdi-navigation-more-vert right"></i>
|
<i class="card-title grey-text text-darken-4 activator mdi-navigation-more-vert right"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw|striptags|slice(0, 42) }}</a></span>
|
<span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|striptags|slice(0, 42)|raw }}</a></span>
|
||||||
|
|
||||||
{% if entry.readingTime > 0 %}
|
<div class="estimatedTime grey-text">
|
||||||
<div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min</span></div>
|
<span class="tool reading-time">
|
||||||
{% else %}
|
{% trans %}estimated reading time{% endtrans %}:
|
||||||
<div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time{% endtrans %}: <small class="inferieur"><</small> 1 min</span></div>
|
{% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}<small class="inferieur"><</small> 1{% endif %} min
|
||||||
{% endif %}
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if entry.previewPicture is null %}
|
{% if entry.previewPicture is null %}
|
||||||
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
<p>{{ entry.content|striptags|slice(0, 300)|raw }}…</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -65,13 +66,14 @@
|
||||||
<i class="card-title grey-text text-darken-4 mdi-card-close right"></i>
|
<i class="card-title grey-text text-darken-4 mdi-card-close right"></i>
|
||||||
<span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></span>
|
<span class="card-title"><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></span>
|
||||||
|
|
||||||
{% if entry.readingTime > 0 %}
|
<div class="estimatedTime grey-text">
|
||||||
<div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min</span></div>
|
<span class="tool reading-time">
|
||||||
{% else %}
|
{% trans %}estimated reading time{% endtrans %}:
|
||||||
<div class="estimatedTime grey-text"><span class="tool reading-time">{% trans %}estimated reading time{% endtrans %}: <small class="inferieur"><</small> 1 min</span></div>
|
{% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}<small class="inferieur"><</small> 1{% endif %} min
|
||||||
{% endif %}
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
<p>{{ entry.content|striptags|slice(0, 300)|raw }}…</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue