From e5858dee52ff921077bb8728872461bfaa45992d Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Mon, 1 Jul 2019 14:05:50 -0700 Subject: [PATCH] Make sure we sanitize the same way (#6233) --- .../workbench/parts/notebook/cellViews/textCell.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/workbench/parts/notebook/cellViews/textCell.component.ts b/src/sql/workbench/parts/notebook/cellViews/textCell.component.ts index df67de74f1..969ceb5600 100644 --- a/src/sql/workbench/parts/notebook/cellViews/textCell.component.ts +++ b/src/sql/workbench/parts/notebook/cellViews/textCell.component.ts @@ -173,9 +173,10 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges { if (useInProcMarkdown(this.configurationService)) { this.markdownRenderer.setNotebookURI(this.cellModel.notebookModel.notebookUri); this.markdownResult = this.markdownRenderer.render({ - isTrusted: this.cellModel.trustedMode, + isTrusted: true, value: this._content }); + this.markdownResult.element.innerHTML = this.sanitizeContent(this.markdownResult.element.innerHTML); this.setLoading(false); let outputElement = this.output.nativeElement; outputElement.innerHTML = this.markdownResult.element.innerHTML;