aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2017-02-01 23:39:34 +0100
committerKevin Decherf <kevin@kdecherf.com>2017-02-02 21:54:15 +0100
commit1bb7bdc8b399abe573dfa4e2c04fafa19991c487 (patch)
tree5c43340eeefe9999df3d9fd29d4c127e072a474a /src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig
parent8a098044bfbe00fa2bd08b01a6d19871b03f28b7 (diff)
downloadwallabag-1bb7bdc8b399abe573dfa4e2c04fafa19991c487.tar.gz
wallabag-1bb7bdc8b399abe573dfa4e2c04fafa19991c487.tar.zst
wallabag-1bb7bdc8b399abe573dfa4e2c04fafa19991c487.zip
Fix rendering of entry title in Twig views
This commit provides some improvements on the rendering of entry title on entries list and entry views and refactors filter calls: - Remove escape filter from apparent title, striptags is enough - Move raw filter to the end of apparent title as it's ignored if not placed as the last filter - Replace raw filter with e('html_attr') for title used in attributes, fixing possible issue and/or glitch - Add striptags to entry.title used for link sharing to respect the apparent title Fixes #2802 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig
index 91a1bac0..58757158 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig
@@ -11,8 +11,8 @@
11 11
12 <div class="card-content"> 12 <div class="card-content">
13 <span class="card-title dot-ellipsis dot-resize-update"> 13 <span class="card-title dot-ellipsis dot-resize-update">
14 <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title| e | raw | striptags }}"> 14 <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title| striptags | e('html_attr') }}">
15 {{ entry.title | e | raw | striptags | truncate(80, true, '…') }} 15 {{ entry.title | striptags | truncate(80, true, '…') | raw }}
16 </a> 16 </a>
17 </span> 17 </span>
18 18