mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
feat: Disables HTML rendering in Toast by default (#21853)
This commit is contained in:
parent
0a4ecca9f2
commit
47b1e0ca9d
@ -97,7 +97,7 @@ export default function Toast({ toast, onCloseToast }: ToastPresenterProps) {
|
||||
role="alert"
|
||||
>
|
||||
{icon}
|
||||
<Interweave content={toast.text} />
|
||||
<Interweave content={toast.text} noHtml={!toast.allowHtml} />
|
||||
<i
|
||||
className="fa fa-close pull-right pointer"
|
||||
role="button"
|
||||
|
@ -31,4 +31,6 @@ export interface ToastMeta {
|
||||
/** Whether to skip displaying this message if there are another toast
|
||||
* with the same message. */
|
||||
noDuplicate?: boolean;
|
||||
/** For security reasons, HTML rendering is disabled by default. Use this property to enable it. */
|
||||
allowHtml?: boolean;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user