Skip to content
Snippets Groups Projects
Commit cedda951 authored by Ben Adida's avatar Ben Adida
Browse files

fix JS escaping

parent 27908fc3
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<script language="javascript"> <script language="javascript">
{% if election.questions %} {% if election.questions %}
QUESTIONS = {{questions_json|safe}}; QUESTIONS = JSON.parse("{{questions_json|escapejs}}");
{% else %} {% else %}
QUESTIONS = []; QUESTIONS = [];
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment