Skip to content
Snippets Groups Projects
Commit 40c9adc4 authored by Chris Beer's avatar Chris Beer
Browse files

Update annotation tags to avoid improperly nested HTML tags

parent 7c0af085
No related branches found
No related tags found
2 merge requests!19Draft: Merge video support into mui5,!18Only nudge over badge content for the WindowListButton; it needs special...
......@@ -95,14 +95,17 @@ export class CanvasAnnotations extends Component {
onMouseEnter={() => this.handleAnnotationHover(annotation)}
onMouseLeave={this.handleAnnotationBlur}
>
<ListItemText primaryTypographyProps={{ variant: 'body2' }}>
<ListItemText
primaryTypographyProps={{ variant: 'body2' }}
primary={
<SanitizedHtml ruleSet={htmlSanitizationRuleSet} htmlString={annotation.content} />
<div>
{annotation.tags.map((tag) => (
<Chip size="small" variant="outlined" label={tag} id={tag} key={tag.toString()} />
))}
</div>
</ListItemText>
}
secondary={
annotation.tags.map((tag) => (
<Chip component="span" size="small" variant="outlined" label={tag} id={tag} key={tag.toString()} />
))
}
/>
</MenuItem>
</ScrollTo>
))}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment