mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Make sure we sanitize the same way (#6233)
This commit is contained in:
@@ -173,9 +173,10 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
|
|||||||
if (useInProcMarkdown(this.configurationService)) {
|
if (useInProcMarkdown(this.configurationService)) {
|
||||||
this.markdownRenderer.setNotebookURI(this.cellModel.notebookModel.notebookUri);
|
this.markdownRenderer.setNotebookURI(this.cellModel.notebookModel.notebookUri);
|
||||||
this.markdownResult = this.markdownRenderer.render({
|
this.markdownResult = this.markdownRenderer.render({
|
||||||
isTrusted: this.cellModel.trustedMode,
|
isTrusted: true,
|
||||||
value: this._content
|
value: this._content
|
||||||
});
|
});
|
||||||
|
this.markdownResult.element.innerHTML = this.sanitizeContent(this.markdownResult.element.innerHTML);
|
||||||
this.setLoading(false);
|
this.setLoading(false);
|
||||||
let outputElement = <HTMLElement>this.output.nativeElement;
|
let outputElement = <HTMLElement>this.output.nativeElement;
|
||||||
outputElement.innerHTML = this.markdownResult.element.innerHTML;
|
outputElement.innerHTML = this.markdownResult.element.innerHTML;
|
||||||
|
|||||||
Reference in New Issue
Block a user