From 16df3fd9389848f8168441789be5184917407271 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 30 Jul 2018 14:42:47 +0800 Subject: [PATCH] fix #155: escape response text --- httprunner/templates/default_report_template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httprunner/templates/default_report_template.html b/httprunner/templates/default_report_template.html index 29215db7..03ba45f2 100644 --- a/httprunner/templates/default_report_template.html +++ b/httprunner/templates/default_report_template.html @@ -288,7 +288,7 @@ {% if value == "image" %} {% else %} -
{{ record.meta_data.response.text }}
+
{{ record.meta_data.response.text | e }}
{% endif %} {% else %} {{value}}