>From 0ee23aeaa1a0d31020174ba9f9ffc7f88cea5ae8 Mon Sep 17 00:00:00 2001 From: Shengjing Zhu <[email protected]> Date: Mon, 17 Jul 2017 19:26:38 +0800 Subject: [PATCH] Mark nm_js_support output safe
Fix #868648 Signed-off-by: Shengjing Zhu <[email protected]> --- backend/templatetags/nm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/templatetags/nm.py b/backend/templatetags/nm.py index 54b0d4a..6cb5cb1 100644 --- a/backend/templatetags/nm.py +++ b/backend/templatetags/nm.py @@ -100,4 +100,4 @@ def nm_js_support(): for s in const.ALL_PROGRESS: res.append('var %s = "%s";' % (s.code, s.tag)) - return "\n".join(res) + return mark_safe("\n".join(res)) -- 2.13.2

