mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
don't trust MarkedString, #29076
This commit is contained in:
@@ -170,7 +170,7 @@ export namespace MarkdownString {
|
||||
} else if (htmlContent.isMarkdownString(markup)) {
|
||||
return markup;
|
||||
} else if (typeof markup === 'string') {
|
||||
return { value: <string>markup, isTrusted: true };
|
||||
return { value: <string>markup };
|
||||
} else {
|
||||
return { value: '' };
|
||||
}
|
||||
@@ -535,4 +535,4 @@ export namespace ProgressLocation {
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user