keep icon indicating copy to clipboard operation
keep copied to clipboard

[➕ Feature]: Enable HTML Support in Alert Descriptions

Open idanlodzki opened this issue 5 months ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, the descriptions in alerts do not support HTML formatting, which limits the ability to structure content effectively (e.g., using headings, lists, links, or styling).

Describe the solution you'd like We would like to allow HTML to be used as part of the alert descriptions. This would enable richer, more formatted content, such as links, bold text, headings, and lists, making it easier to convey important information within alerts.

Describe alternatives you've considered We’ve considered using markdown or a custom text formatting approach, but HTML provides more flexibility and compatibility with various display systems and would ensure consistent formatting across all platforms.

Additional context This change would greatly enhance the readability and clarity of alert descriptions, making it easier to highlight critical information and link out to external resources when necessary.

idanlodzki avatar Aug 05 '25 07:08 idanlodzki

this is done, look to https://github.com/keephq/keep/blob/9cc9de07e7827a5a9eeee8daf670005bf97a73b6/keep-ui/shared/ui/FormattedContent/FormattedContent.tsx

https://github.com/keephq/keep/blob/9cc9de07e7827a5a9eeee8daf670005bf97a73b6/keep-ui/features/alerts/alert-detail-sidebar/ui/alert-sidebar.tsx#L4

Image

if you set field "description_format" to "html" you get html render with sanitize

00041275 avatar Aug 08 '25 05:08 00041275