Skip to content

Build your personal knowledge base with Trilium Notes

fix(setup): use safer `text` method instead of html to prevent possible XSS

Panagiotis Papadopoulosa110161b2ef3
diff --git a/src/public/app/setup.ts b/src/public/app/setup.ts
index 6bb44f2e8c..ec389c793a 100644
--- a/src/public/app/setup.ts
+++ b/src/public/app/setup.ts
@@ -110,7 +110,7 @@ async function checkOutstandingSyncs() {
}
function showAlert(message: string) {
- $("#alert").html(message);
+ $("#alert").text(message);
$("#alert").show();
}