Fix: Render HTML in dataset explorer long description#1206
Fix: Render HTML in dataset explorer long description#1206
Conversation
|
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? |
|
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! |
|
I think for the two innerHTML assignments, we need to ensure the value is treated as HTML See Lines 624 to 628 in 045b165 |
|
Updated both innerHTML assignments to wrap the value in a span element, consistent with the pattern in |
Fixes
#1164
The long description field in the dataset explorer result card was using
.textContent, which renders HTML tags as plain text. Changed to.innerHTMLso descriptionswith embedded HTML are rendered correctly, consistent with how the Dataset Information dialog already handles it.