Skip to content

Commit 1a150a4

Browse files
Potential fix for code scanning alert no. 37: DOM text reinterpreted as HTML
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 868590f commit 1a150a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/src/js/functions/text-shortener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function initTextShortener() {
4444
// Mostra tutto il testo
4545
const originalText = $(element).find('.allcontent').text();
4646
if (originalText) {
47-
$(element).html(originalText);
47+
$(element).text(originalText);
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)