]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix authors and preview alt encoding display 3664/head
authorSimounet <contact@simounet.net>
Mon, 4 Jun 2018 10:04:37 +0000 (12:04 +0200)
committerSimounet <contact@simounet.net>
Mon, 4 Jun 2018 10:04:37 +0000 (12:04 +0200)
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig

index 0d05f4d5b5b2b1bb6803e2191970d13f3dfd05ec..7484d53be3d9bed1f202762f9205baa891e0268c 100644 (file)
                         <li>
                             <i class="material-icons" title="{{ 'entry.view.published_by'|trans }}">person</i>
                             {% for author in entry.publishedBy %}
-                                {{ author }}{% if not loop.last %}, {% endif %}
+                                {{ author|raw }}{% if not loop.last %}, {% endif %}
                             {% endfor %}
                         </li>
                     {% endif %}
             </div>
 
             {% if entry.previewPicture is not null %}
-                <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /></div>
+                <div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}" /></div>
             {% endif %}
 
         </aside>