From cedda951483c5e7b9051e7d4bd0be4a9443cdb15 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Mon, 6 Jun 2016 04:24:54 +0000
Subject: [PATCH] fix JS escaping

---
 helios/templates/election_questions.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helios/templates/election_questions.html b/helios/templates/election_questions.html
index 166ca38..f9aa61d 100644
--- a/helios/templates/election_questions.html
+++ b/helios/templates/election_questions.html
@@ -6,7 +6,7 @@
 
   <script language="javascript">
 {% if election.questions %}
-  QUESTIONS = {{questions_json|safe}};
+  QUESTIONS = JSON.parse("{{questions_json|escapejs}}");
 {% else %}
   QUESTIONS = [];
 {% endif %}
-- 
GitLab