Skip to content

fix: strip HTML tags from note values in alert table columns#6183

Open
DragonBot00 wants to merge 1 commit intokeephq:mainfrom
DragonBot00:fix/strip-html-notes
Open

fix: strip HTML tags from note values in alert table columns#6183
DragonBot00 wants to merge 1 commit intokeephq:mainfrom
DragonBot00:fix/strip-html-notes

Conversation

@DragonBot00
Copy link
Copy Markdown

Summary

Fixes #5283

Problem

When a user adds a note to an alert using the rich-text editor (Quill), the note content is stored with HTML markup (e.g., <p>My note text

). When the
ote\ field is displayed in the alert table columns, the raw HTML string was rendered as plain text, causing the user to see <p>My note text

\ instead of \My note text.

Fix

Added a \stripHtml\ utility function in \keep-ui/widgets/alerts-table/lib/alert-table-utils.tsx\ that removes HTML tags using a regex replacement. When the generic column cell renderer encounters the
ote\ column, it now passes the value through \stripHtml\ before rendering — displaying clean, readable plain text in the table.

Changes

  • \keep-ui/widgets/alerts-table/lib/alert-table-utils.tsx: Added \stripHtml\ helper and applied it to
    ote\ column cell rendering.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

@DragonBot00 is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@DragonBot00
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. Bug Something isn't working javascript Pull requests that update Javascript code UI User interface related issues labels Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working javascript Pull requests that update Javascript code size:S This PR changes 10-29 lines, ignoring generated files. UI User interface related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Note values displayed with HTML tags in alert table columns instead of plain text

1 participant