IntelOwl icon indicating copy to clipboard operation
IntelOwl copied to clipboard

[Frontend] Changelog notifications display raw HTML tags instead of formatted text

Open sanjib2006 opened this issue 9 months ago • 1 comments

What happened The changelog notifications in the UI are displaying raw HTML tags (e.g., <h1>, <ul>, <li>) instead of rendering the text as formatted headers and lists. This makes the release notes difficult to read.

Environment

  • OS: any
  • IntelOwl version: Current (v6.5.0+)

What did you expect to happen The notifications should parse the HTML content and display properly formatted text (e.g., bold headers, bullet points) within the notification card without showing any raw tags.

How to reproduce your issue

  1. Login to the IntelOwl dashboard.
  2. Click on the notification bell icon.
  3. See that the body contains raw HTML markup.

Error messages and logs No error messages in the console.

Image

sanjib2006 avatar Feb 18 '26 11:02 sanjib2006

I looked into this and already have a fix ready locally. Basically, I can fix it by adding rehype-raw to the ReactMarkdown component in NotificationsList.jsx so it parses the HTML tags properly, plus rehype-sanitize to prevent any xss issues. I also updated the styling to fix the headers and lists since they were rendering inline and looked broken.

Could you assign this to me?

sanjib2006 avatar Feb 18 '26 11:02 sanjib2006