File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
arduino-ide-extension/src/browser/theia/messages Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from '@theia/core/shared/react';
22import { NotificationComponent as TheiaNotificationComponent } from '@theia/messages/lib/browser/notification-component' ;
33import { nls } from '@theia/core/lib/common' ;
44import { codicon } from '@theia/core/lib/browser' ;
5+ import { sanitize } from 'dompurify' ;
56
67export class NotificationComponent extends TheiaNotificationComponent {
78 override render ( ) : React . ReactNode {
@@ -20,7 +21,7 @@ export class NotificationComponent extends TheiaNotificationComponent {
2021 />
2122 < div className = "theia-notification-message" >
2223 < span
23- dangerouslySetInnerHTML = { { __html : message } }
24+ dangerouslySetInnerHTML = { { __html : sanitize ( message ) } }
2425 onClick = { this . onMessageClick }
2526 />
2627 </ div >
You can’t perform that action at this time.
0 commit comments