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

fix JS escaping

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