escaped relations and funding agency names on the safe side
{% if relations %}
"citation": [
{% for relation in relations %}
- "{{ relation.value }}"{%if not forloop.last%},{%endif%}
+ "{{ relation.value | escapejs }}"{%if not forloop.last%},{%endif%}
{% endfor %}
],
{% endif %}
{% for agency in fundingagencies %}
{
"@type": "Organization",
- "name": "{{ agency.agency_name }}",
+ "name": "{{ agency.agency_name | escapejs }}",
"url": "{{ agency.agency_url }}"
}{%if not forloop.last%},{%endif%}
{% endfor %}
