diff --git a/frontend/src/utils/html.ts b/frontend/src/utils/html.ts
index df661550497..3e2c1a01966 100644
--- a/frontend/src/utils/html.ts
+++ b/frontend/src/utils/html.ts
@@ -13,7 +13,7 @@ import { parse } from 'marked';
export function sanitizeHtml(input: string, isMarkdown = false): string {
// Some providers have newlines, replace them with the proper tag.
const cleanString = input.replaceAll(/\r\n|\r|\n/g, '
');
- const inputString = isMarkdown ? (parse(cleanString, { async: false }) as string) : cleanString;
+ const inputString = isMarkdown ? parse(cleanString, { async: false }) : cleanString;
return DOMPurify.sanitize(
inputString,