Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EES-5506 fix data-catalogue footnotes rendering html as plain text #5248

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

bennettstuart
Copy link
Collaborator

@bennettstuart bennettstuart commented Sep 13, 2024

Fixes Footnotes rendering html as plain text in data catalogue pages.
Implementation now follows suit with other footnote rendering using <ContentHtml / > to render footnote labels

@@ -14,7 +15,9 @@ export default function DataSetFileFootnotes({ footnotes }: Props) {
<DataSetFilePageSection heading={pageSections[sectionId]} id={sectionId}>
<ol>
{footnotes.map(footnote => (
<li key={footnote.id}>{footnote.label}</li>
<li key={footnote.id}>
<ContentHtml html={footnote.label} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we run all footnotes through the sanitizeHtml before this, so there is no need to do it here, but just raising it to double check before merging.

With footnotes only being created by analysts anyway, this isn't really much of a risk regardless.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ContentHtml is sanitizing, so ignore this comment.

@bennettstuart bennettstuart merged commit 7093f99 into dev Sep 13, 2024
7 checks passed
@bennettstuart bennettstuart deleted the EES-5506 branch September 13, 2024 14:14
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