Merge pull request #3664 from Simounet/fix/entry-attributes-encoding

Fix authors and preview alt encoding display
This commit is contained in:
Jérémy Benoist 2018-06-05 04:33:37 +00:00 committed by GitHub
commit def73759ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,7 +245,7 @@
<li> <li>
<i class="material-icons" title="{{ 'entry.view.published_by'|trans }}">person</i> <i class="material-icons" title="{{ 'entry.view.published_by'|trans }}">person</i>
{% for author in entry.publishedBy %} {% for author in entry.publishedBy %}
{{ author }}{% if not loop.last %}, {% endif %} {{ author|raw }}{% if not loop.last %}, {% endif %}
{% endfor %} {% endfor %}
</li> </li>
{% endif %} {% endif %}
@ -276,7 +276,7 @@
</div> </div>
{% if entry.previewPicture is not null %} {% 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 %} {% endif %}
</aside> </aside>