Most secure way to render HTML string as HTML in MessageBox #7149
|
Hi All, We have an html markup as string which we receive from an API call, for eg: We need to render this inside the content of the UI5 MessageBox. Current solution we have tried is to sanitize it using dompurify.sanitize and then set it using dangerouslySetInnerHTML inside a div: Is it a secure solution? Or is there a better solution/component which we can use to achieve this requirement. Any help will be really appreciated. |
Answered by
abhijeet181088
Mar 28, 2025
Replies: 1 comment
|
We are going ahead with the solution mentioned. Hence closing this query. Thanks! |
0 replies
Answer selected by
abhijeet181088
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are going ahead with the solution mentioned. Hence closing this query. Thanks!