-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed an issue where html tags where being displayed on news item titles #4475
Conversation
@@ -16,14 +16,14 @@ <h2 class="title">{% trans 'Latest' %} {{ journal_settings.news.news_title }} {% | |||
<a href="{% url 'core_news_item' item.pk %}"><img | |||
class="news-image" | |||
src="{{ item.best_image_url }}" | |||
alt="{{ item.title }}"/></a> | |||
alt="{{ item.title|safe }}"/></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use striptags here? Tags are not valid inside an alt attribute.
@@ -15,7 +15,7 @@ | |||
{% if item.large_image_file or request.journal and request.journal.default_large_image or request.press.default_carousel_image %} | |||
<div class="card-image"> | |||
<img src="{{ item.best_image_url }}" | |||
alt="{{ item.title }}"/> | |||
alt="{{ item.title|safe }}"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use striptags here? Tags are not valid inside an alt attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closes #4467