etr2460 commented on a change in pull request #8398: [SIP-15] Adding initial
framework
URL:
https://github.com/apache/incubator-superset/pull/8398#discussion_r335728103
##########
File path: superset/assets/src/messageToasts/components/Toast.jsx
##########
@@ -96,7 +97,7 @@ class Toast extends React.Component {
toastType === DANGER_TOAST && 'toast--danger',
)}
>
- {text}
+ <div dangerouslySetInnerHTML={{ __html: dompurify.sanitize(text) }} />
Review comment:
But in general, this is super hacky.... maybe there's a way to do this
without needing to use `flash`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]