diff --git a/helios/templates/election_questions.html b/helios/templates/election_questions.html index 166ca380a13841823d617775e1f751ee537d4659..f9aa61dae9f6b70daa6c8ec76c40da961ab40f59 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 %}