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.
4 lines
97 B
Plaintext
4 lines
97 B
Plaintext
<li class="ellipsis" aria-hidden="true">
|
|
<%= sanitize(t("views.pagination.truncate")) %>
|
|
</li>
|