fix issues with XSS

This commit is contained in:
ThatLinuxFan 2024-01-22 18:38:15 -06:00 committed by GitHub
parent 741f2d9945
commit 2bb90c7c89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@
const splText = template.replace('FULL-NUMERIC-YEAR', fullNumericYear).replace('YOUR-REAL-NAME-OR-ORG', name);
// Set the body content to the generated SPL text
document.body.innerHTML = `<pre>${splText}</pre>`;
document.body.innerText = `${splText}`;
})
.catch(error => console.error('Error fetching SPL template:', error));
}