fix issues with XSS
This commit is contained in:
parent
741f2d9945
commit
2bb90c7c89
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue