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}}
diff --git a/httprunner/templates/extent_report_template.html b/httprunner/templates/extent_report_template.html
index 248d255d..03b8c06d 100644
--- a/httprunner/templates/extent_report_template.html
+++ b/httprunner/templates/extent_report_template.html
@@ -171,14 +171,17 @@
{{ record.meta_data.response.text }}
{% endif %}
{% else %}
- {{value}}
+ {{ value }}
{% endif %}