Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions markdown_editor/js/markdown_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function tryAjaxUpdatePreview() {
success: function( data ) {
isSending = false;
setTimeout(tryAjaxUpdatePreview, 0);
data = DOMPurify.sanitize(data);
$("#html_result").html(data);
}});
}
Expand Down
2 changes: 2 additions & 0 deletions markdown_editor/js/purify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions markdown_editor/markdown_edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<link href="/css/pygments.css" rel="stylesheet">
<link href="/css/markdown_edit.css" rel="stylesheet">
<script src="/js/markdown_edit.js"></script>
<script src="/js/purify.min.js"></script>
</head>

<body style="background-color: rgb(204, 204, 204);">
Expand Down