-
Notifications
You must be signed in to change notification settings - Fork 1.4k
FAQ accordion renders HTML tags as plain text instead of parsing links #1693
Description
Describe the bug
In the FAQ section on the website, the answer content for some accordion items is being rendered as raw HTML string instead of being interpreted as HTML. Anchor tags like <a href='/screen-recorder-mac'>macOS</a> are displayed literally as text rather than as clickable hyperlinks.
Steps to reproduce
- Go to the FAQ section on cap.so/screen-recorder
- Click on "What platforms does Cap support?"
- Observe the expanded answer
Expected behavior
The answer should render formatted HTML with clickable links (e.g., "macOS" and "Windows" as hyperlinks).
Actual behavior
Raw HTML tags are visible as plain text in the answer body, e.g.:
Cap is compatible with <a href='/screen-recorder-mac'>macOS</a> and <a href='/screen-recorder-windows'>Windows</a>...
Screenshots
Likely cause
The FAQ answer content is probably being set via textContent or passed into a framework without dangerouslySetInnerHTML / v-html / equivalent. The fix would be to use the appropriate method to render HTML content safely.
Environment
- Browser: Brave, Chrome
- OS: Ubuntu