Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): toasts could render HTML content

Elian Doran626aca518188
diff --git a/apps/client/src/widgets/Toast.tsx b/apps/client/src/widgets/Toast.tsx
index 9630836e1b..f0321345a2 100644
--- a/apps/client/src/widgets/Toast.tsx
+++ b/apps/client/src/widgets/Toast.tsx
@@ -5,7 +5,6 @@ import { useEffect } from "preact/hooks";
import { removeToastFromStore, ToastOptionsWithRequiredId, toasts } from "../services/toast";
import Icon from "./react/Icon";
-import { RawHtmlBlock } from "./react/RawHtml";
import Button from "./react/Button";
export default function ToastContainer() {
@@ -54,7 +53,7 @@ function Toast({ id, title, timeout, progress, message, icon, buttons }: ToastOp
<div class="toast-icon">{toastIcon}</div>
)}
- <RawHtmlBlock className="toast-body" html={message} />
+ <div className="toast-body">{message}</div>
{!title && <div class="toast-header">{closeButton}</div>}