Use sanitize instead of html_safe

The difference is `html_safe` allows every HTML tag, including the
`<script>` tag, while `sanitize` only allows tags which are considered
safe. In this case, we want to allow a `<span>` tag in a translation,
and links inside flash messages.
This commit is contained in:
Javi Martín
2019-10-02 17:06:49 +02:00
parent 928312e218
commit 61bf9a5c73
3 changed files with 4 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
<li class="ellipsis" aria-hidden="true">
<%= t("views.pagination.truncate").html_safe %>
<%= sanitize(t("views.pagination.truncate")) %>
</li>