diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2017-02-17 09:28:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 09:28:56 +0100 |
commit | 2edc5395814c01fbd71c66234aa751092b913c2b (patch) | |
tree | 04d47f2e5c97b87a5ff1ba7d9b5e091eb15a2fa9 /src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | |
parent | 2ac8e2c5b51712e549d21aa29b9929731dc29771 (diff) | |
parent | aedd385e108b1d8ae1473e840877086276172eeb (diff) | |
download | wallabag-2edc5395814c01fbd71c66234aa751092b913c2b.tar.gz wallabag-2edc5395814c01fbd71c66234aa751092b913c2b.tar.zst wallabag-2edc5395814c01fbd71c66234aa751092b913c2b.zip |
Merge pull request #2830 from Kdecherf/striptags-title
Fix rendering of entry title in Twig views
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig index d23be4d0..fb5301c8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig | |||
@@ -13,8 +13,8 @@ | |||
13 | <i class="grey-text text-darken-4 activator material-icons right">more_vert</i> | 13 | <i class="grey-text text-darken-4 activator material-icons right">more_vert</i> |
14 | 14 | ||
15 | <span class="card-title dot-ellipsis dot-resize-update"> | 15 | <span class="card-title dot-ellipsis dot-resize-update"> |
16 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | e | raw | striptags }}"> | 16 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}"> |
17 | {{ entry.title | e | striptags | truncate(80, true, '…') | raw }} | 17 | {{ entry.title | striptags | truncate(80, true, '…') | raw }} |
18 | </a> | 18 | </a> |
19 | </span> | 19 | </span> |
20 | 20 | ||
@@ -29,8 +29,8 @@ | |||
29 | <div class="card-reveal"> | 29 | <div class="card-reveal"> |
30 | <i class="card-title activator grey-text text-darken-4 material-icons right">clear</i> | 30 | <i class="card-title activator grey-text text-darken-4 material-icons right">clear</i> |
31 | <span class="card-title"> | 31 | <span class="card-title"> |
32 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | e | raw | striptags }}"> | 32 | <a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}"> |
33 | {{ entry.title | e | raw | striptags | truncate(80, true, '…') }} | 33 | {{ entry.title | striptags | truncate(80, true, '…') | raw }} |
34 | </a> | 34 | </a> |
35 | </span> | 35 | </span> |
36 | 36 | ||