From f749fc641b2ce6a77dd77b4844046a875d1d0d36 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 12 May 2020 17:42:24 +0200 Subject: [PATCH 1/2] Temporary fix for #1390 --- cps/templates/book_edit.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html index b72ef197..d19d8d40 100644 --- a/cps/templates/book_edit.html +++ b/cps/templates/book_edit.html @@ -305,9 +305,9 @@ // create a random identifier type to have a valid name in form. This will not be used when dealing with the form var rand_id = Math.floor(Math.random() * 1000000).toString(); var line = ''; - line += ''; - line += ''; - line += '{{_('Remove')}}'; + line += ''; + line += ''; + line += '{{_('Remove')|forceescape}}'; line += ''; $("#identifier-table").append(line); }); From 44d5adc16f4aa3ece7cc5df0e41d39ffcb7b40d6 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 12 May 2020 19:08:51 +0200 Subject: [PATCH 2/2] Fix #1390 --- cps/templates/book_edit.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/templates/book_edit.html b/cps/templates/book_edit.html index d19d8d40..0996efcc 100644 --- a/cps/templates/book_edit.html +++ b/cps/templates/book_edit.html @@ -305,9 +305,9 @@ // create a random identifier type to have a valid name in form. This will not be used when dealing with the form var rand_id = Math.floor(Math.random() * 1000000).toString(); var line = ''; - line += ''; - line += ''; - line += '{{_('Remove')|forceescape}}'; + line += ''; + line += ''; + line += '{{_('Remove')}}'; line += ''; $("#identifier-table").append(line); });