diff --git a/app/Views/libri/partials/book_form.php b/app/Views/libri/partials/book_form.php
index d0fe29d5..b51bcf91 100644
--- a/app/Views/libri/partials/book_form.php
+++ b/app/Views/libri/partials/book_form.php
@@ -2629,10 +2629,10 @@ function setupEnhancedAutocomplete(inputId, suggestId, fetchUrl, onSelect, onEmp
${__('Libro Esistente:')}
${__('ID:')} #${existingBook.id}
-
${__('Titolo:')} ${existingBook.title}
- ${existingBook.isbn13 ? `
${__('ISBN-13:')} ${existingBook.isbn13}
` : ''}
- ${existingBook.ean ? `
${__('EAN:')} ${existingBook.ean}
` : ''}
- ${existingBook.location ? `
${__('Collocazione:')} ${existingBook.location}
` : `
${__('Collocazione:')} ${__('Non specificata')}
`}
+
${__('Titolo:')} ${escapeHtml(existingBook.title)}
+ ${existingBook.isbn13 ? `
${__('ISBN-13:')} ${escapeHtml(existingBook.isbn13)}
` : ''}
+ ${existingBook.ean ? `
${__('EAN:')} ${escapeHtml(existingBook.ean)}
` : ''}
+ ${existingBook.location ? `
${__('Collocazione:')} ${escapeHtml(existingBook.location)}
` : `
${__('Collocazione:')} ${__('Non specificata')}
`}
${__('Vuoi aumentare il numero di copie di questo libro?')}
`,
@@ -2730,7 +2730,7 @@ function setupEnhancedAutocomplete(inputId, suggestId, fetchUrl, onSelect, onEmp
icon: 'success',
title: __('Copie Aggiunte!'),
html: `
-
${__('Hai aggiunto %s copie a "%s"').replace('%s', copiesToAdd).replace('%s', book.title)}
+
${__('Hai aggiunto %s copie a "%s"').replace('%s', copiesToAdd).replace('%s', escapeHtml(book.title))}
${__('Copie totali:')}: ${data.copie_totali}
${__('Copie disponibili:')}: ${data.copie_disponibili}
`,
@@ -3789,7 +3789,7 @@ function displayScrapedCover(imageUrl) {