Make sure we sanitize the same way (#6233)

This commit is contained in:
Chris LaFreniere
2019-07-01 14:05:50 -07:00
committed by GitHub
parent bae573453a
commit e5858dee52

View File

@@ -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;