Skip to content

Commit c819679

Browse files
committed
forms: FeedbackLabel: display unescaped description (sanitized HTML)
1 parent 81a2008 commit c819679

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lib/forms/FeedbackLabel.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ export class FeedbackLabel extends Component {
4343
{hasSeverity && (
4444
<InvenioPopup
4545
trigger={<Icon name="info circle" />}
46-
content={severityInfo.severityDescription}
46+
// Rule descriptions can contain HTML to link to a page with more details about the rule.
47+
// This field is sanitized in the backend with SanitizedHTML.
48+
content={
49+
<span
50+
dangerouslySetInnerHTML={{ __html: severityInfo.severityDescription }}
51+
/>
52+
}
4753
position="top center"
4854
hoverable
4955
/>

0 commit comments

Comments
 (0)