Skip to content

Commit

Permalink
Strip HTML tags from flash messages
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 29, 2018
1 parent 8cc2d0e commit 72bb73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/default/flash_messages.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% for label, messages in app.session.flashbag.all %}
{% for message in messages %}
<div class="alert alert-{{ label }}">
{{ message|trans }}
{{ message|trans|striptags }}
</div>
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit 72bb73b

Please sign in to comment.