Improve how attendee names are displayed in meeting alerts
Modify `upcoming-meeting-alert.tsx` to strip HTML tags from attendee names, preventing raw HTML or empty tags from being displayed. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 56a48682-927f-4cf0-8067-bfa5734c01e9 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/GMnW1ol Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -1421,8 +1421,15 @@ function DetailsPanel({
|
||||
</div>
|
||||
<ul className="list-disc ps-4 leading-snug">
|
||||
{list.map((p, idx) => {
|
||||
const cleanName =
|
||||
p.name.replace(/<[^>]+>/g, "").trim() || p.name;
|
||||
// Attendee names are stored as sanitized rich-text
|
||||
// HTML; strip every tag for the popup. If the input
|
||||
// is tag-only (e.g. "<p></p>") we render nothing
|
||||
// rather than fall back to the raw value, so HTML
|
||||
// can never appear here.
|
||||
const cleanName = p.name
|
||||
.replace(/<[^>]+>/g, "")
|
||||
.trim();
|
||||
if (!cleanName) return null;
|
||||
return (
|
||||
<li key={`${g}-${p.id ?? idx}-${p.name}`}>
|
||||
{cleanName}
|
||||
|
||||
Reference in New Issue
Block a user