diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/bag.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/bag.html.twig
index d9ccadb21b..8947c9a6cb 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/bag.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/bag.html.twig
@@ -7,10 +7,11 @@
{% for key in bag.keys|sort %}
-
- {{ key }} |
- {{ bag.get(key)|json_encode }} |
-
+
+ {{ key }} |
+ {# JSON_UNESCAPED_SLASHES = 64, JSON_UNESCAPED_UNICODE = 256 #}
+ {{ bag.get(key)|json_encode(64 b-or 256) }} |
+
{% endfor %}
diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/table.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/table.html.twig
index 06089edaba..1c5130dfba 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/table.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/table.html.twig
@@ -9,7 +9,8 @@
{% for key in data|keys|sort %}
{{ key }} |
- {{ data[key]|json_encode }} |
+ {# JSON_UNESCAPED_SLASHES = 64, JSON_UNESCAPED_UNICODE = 256 #}
+ {{ data[key]|json_encode(64 b-or 256) }} |
{% endfor %}