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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We are going ahead with the solution mentioned. Hence closing this query. Thanks! |
Beta Was this translation helpful? Give feedback.
We are going ahead with the solution mentioned. Hence closing this query. Thanks!