From 042b7a203c517379dd18cce85a7c04b04bc5dded Mon Sep 17 00:00:00 2001 From: Samuel Gordalina Date: Mon, 8 Apr 2013 21:19:24 +0100 Subject: [PATCH] Use text() instead of html() when inserting headers in the DOM --- Resources/views/layout.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 967c105..9a754ed 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -120,7 +120,7 @@ var text = xhr.status + ' ' + xhr.statusText + "\n\n"; text += xhr.getAllResponseHeaders(); - container.html(text); + container.text(text); }; var displayResponse = function(xhr, method, url, result_container) {