From 72bb73baf3374fb02ec58632a11bf6eecf84df24 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 29 Nov 2018 17:04:00 +0100 Subject: [PATCH] Strip HTML tags from flash messages --- src/Resources/views/default/flash_messages.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/views/default/flash_messages.html.twig b/src/Resources/views/default/flash_messages.html.twig index bfc2540848..e6f0a9ebed 100644 --- a/src/Resources/views/default/flash_messages.html.twig +++ b/src/Resources/views/default/flash_messages.html.twig @@ -3,7 +3,7 @@ {% for label, messages in app.session.flashbag.all %} {% for message in messages %}
- {{ message|trans }} + {{ message|trans|striptags }}
{% endfor %} {% endfor %}