diff --git a/django/cantusdb_project/main_app/templates/chant_create.html b/django/cantusdb_project/main_app/templates/chant_create.html index 95f335c97..a5d4fe21d 100644 --- a/django/cantusdb_project/main_app/templates/chant_create.html +++ b/django/cantusdb_project/main_app/templates/chant_create.html @@ -314,10 +314,10 @@
{{ source.siglum } value="{{ suggestion.cantus_id }}" title="{{ suggestion.cantus_id }}" onclick='autoFillSuggestedChant( - "{{ suggestion.genre_name }}", + "{{ suggestion.genre_name | escapejs }}", {{ suggestion.genre_id | default_if_none:"null" }}, - "{{ suggestion.cantus_id }}", - "{{ suggestion.fulltext }}" + "{{ suggestion.cantus_id | escapejs }}", + "{{ suggestion.fulltext | escapejs }}" )' > {{ suggestion.genre_name }} - {{ suggestion.incipit }} ({{ suggestion.occurrences }}x)