]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Fix rendering of entry title in Twig views
authorKevin Decherf <kevin@kdecherf.com>
Wed, 1 Feb 2017 22:39:34 +0000 (23:39 +0100)
committerKevin Decherf <kevin@kdecherf.com>
Thu, 2 Feb 2017 20:54:15 +0000 (21:54 +0100)
commit1bb7bdc8b399abe573dfa4e2c04fafa19991c487
tree5c43340eeefe9999df3d9fd29d4c127e072a474a
parent8a098044bfbe00fa2bd08b01a6d19871b03f28b7
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>
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_full_image.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_no_preview.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_preview.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig