From 4d9128ded96bb70b7bda964870ba3e279832dd9b Mon Sep 17 00:00:00 2001 From: Simounet Date: Fri, 9 Feb 2018 19:28:02 +0100 Subject: Fix title card HTML parsing --- .../CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | 2 +- .../CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | 4 ++-- .../Resources/views/themes/material/Entry/Card/_content.html.twig | 2 +- .../CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 27c8e8a2..adc704bb 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@ -38,7 +38,7 @@ {% for entry in entries %}
-

{{ entry.title | striptags | truncate(80, true, '…') | raw | default('entry.default_title'|trans) }}

+

{{ entry.title | striptags | truncate(80, true, '…') | default('entry.default_title'|trans) | raw }}

{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig index f18e32ca..d42739ac 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig @@ -1,11 +1,11 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{{ entry.title|e|raw|default('entry.default_title'|trans) }} ({{ entry.domainName|removeWww }}){% endblock %} +{% block title %}{{ entry.title|e|default('entry.default_title'|trans)|raw }} ({{ entry.domainName|removeWww }}){% endblock %} {% block content %}
-

{{ entry.title|e|raw |default('entry.default_title'|trans) }}

+

{{ entry.title|e|default('entry.default_title'|trans)|raw }}

diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig index 1c898f0f..1f3cd1a7 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_content.html.twig @@ -3,7 +3,7 @@ more_vert {% endif %} - {{ entry.title | striptags | truncate(80, true, '…') | raw | default('entry.default_title'|trans) }} + {{ entry.title | striptags | truncate(80, true, '…') | default('entry.default_title'|trans) | raw }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index 8abf90c1..0d05f4d5 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig @@ -1,6 +1,6 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{{ entry.title|striptags|raw|default('entry.default_title'|trans) }} ({{ entry.domainName|removeWww }}){% endblock %} +{% block title %}{{ entry.title|striptags|default('entry.default_title'|trans)|raw }} ({{ entry.domainName|removeWww }}){% endblock %} {% block body_class %}entry{% endblock %} @@ -223,7 +223,7 @@ {% block content %}
-

{{ entry.title|striptags|raw|default('entry.default_title'|trans) }}

+

{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}