From 343cc87e4d855ad2c02fe7135dcc89902d4e54a7 Mon Sep 17 00:00:00 2001 From: mARTin Date: Tue, 24 Mar 2026 12:26:58 +0100 Subject: [PATCH] fix: strip HTML tags from event description in note tooltip Calendar providers return descriptions with HTML tags (e.g.

test

). Strip them before displaying in the hover tooltip. v1.67.1 Co-Authored-By: Claude Opus 4.6 --- package.json | 2 +- src/components/WeeklyView.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ada8fc9..d5278b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.67.0", + "version": "1.67.1", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index c5cede9..25b1666 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -83,6 +83,8 @@ import { FileText, } from "lucide-react"; +const stripHtml = (html: string) => html.replace(/<[^>]*>/g, '').trim(); + // Types import UserMenu from "./UserMenu"; import SearchModal from "./SearchModal"; @@ -7799,7 +7801,7 @@ export default function WeeklyView() { {(event.isRecurring || event.description || profile.showCalendarProviderIcon) && (
{event.description && ( - + )} @@ -7940,7 +7942,7 @@ export default function WeeklyView() { {(event.isRecurring || event.description || profile.showCalendarProviderIcon) && (
{event.description && ( - + )}