Skip to content

Fix: Render HTML in dataset explorer long description#1206

Open
Swargambharath987 wants to merge 1 commit intoIGS:develfrom
Swargambharath987:fix/dataset-explorer-html-description
Open

Fix: Render HTML in dataset explorer long description#1206
Swargambharath987 wants to merge 1 commit intoIGS:develfrom
Swargambharath987:fix/dataset-explorer-html-description

Conversation

@Swargambharath987
Copy link

Fixes
#1164

The long description field in the dataset explorer result card was using .textContent, which renders HTML tags as plain text. Changed to .innerHTML so descriptions
with embedded HTML are rendered correctly, consistent with how the Dataset Information dialog already handles it.

@jorvis
Copy link
Member

jorvis commented Mar 1, 2026

Thanks for your contribution here! I like this change. Did you happen to check if it passes a cycle of edit, save, and display again with embedded html?

@jorvis jorvis self-assigned this Mar 1, 2026
@Swargambharath987
Copy link
Author

Thanks for checking @jorvis! I looked at the code and line 625 in the same file covers the after-save update path as well, so both the initial render and the edit/display cycle should be handled. That said, I haven't been able to test it on a live instance, happy to update if you spot anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants