Skip to content

Commit

Permalink
use trusted html for playground, fyi @JacksonKearl, #106395
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Oct 9, 2020
1 parent d2ebe3b commit 04b9275
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export class WalkThroughPart extends EditorPane {
const innerContent = document.createElement('div');
innerContent.classList.add('walkThroughContent'); // only for markdown files
const markdown = this.expandMacros(content);
innerContent.innerHTML = marked(markdown, { renderer });
safeInnerHtml(innerContent, marked(markdown, { renderer }));
this.content.appendChild(innerContent);

model.snippets.forEach((snippet, i) => {
Expand Down

0 comments on commit 04b9275

Please sign in to comment.