From bca9fb0bb38f90bc5f3b00b7a3e26c3d18d453b1 Mon Sep 17 00:00:00 2001 From: Jascha Koch Date: Thu, 8 Jun 2017 10:22:51 +0200 Subject: [PATCH] Use js escaping for buttons 'text' property, so it can contain html tags --- Resources/views/datatable/button.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/datatable/button.html.twig b/Resources/views/datatable/button.html.twig index 6540db71..52c8da10 100644 --- a/Resources/views/datatable/button.html.twig +++ b/Resources/views/datatable/button.html.twig @@ -50,7 +50,7 @@ namespace: "{{ button.namespace }}", {% endif %} {% if button.text is defined and button.text is not same as(null) %} - text: "{{ button.text }}", + text: "{{ button.text|e('js') }}", {% endif %} {% if button.titleAttr is defined and button.titleAttr is not same as(null) %} titleAttr: "{{ button.titleAttr }}",