Skip to content

Commit

Permalink
fix(DHIS2-17002): accept 'u' html tag instead of 'underline'
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Apr 25, 2024
1 parent 5d6d8c1 commit 8109a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data-workspace/section-form/section-description.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const SectionDescription = ({ children }) => {
return null
}
const html = DOMPurify.sanitize(children, {
ALLOWED_TAGS: ['a', 'b', 'strong', 'underline'],
ALLOWED_TAGS: ['a', 'b', 'strong', 'u', 'em'],
})

return (
Expand Down

1 comment on commit 8109a75

@dhis2-bot
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.