summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-13 07:59:40 +0100
committerPhil Hughes <me@iamphill.com>2017-04-13 07:59:40 +0100
commitb97b05d3950abe5ba55e228d6d82256aca512274 (patch)
tree39922d89e6fea6a76049faed649646020a66251d
parentd7a527163b64fa38e46fc6195fef2f5d93e47d07 (diff)
downloadgitlab-ce-notebooklab-sanitize-marked-option.tar.gz
Sanitize HTML in marked JS librarynotebooklab-sanitize-marked-option
-rw-r--r--vendor/assets/javascripts/notebooklab.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/assets/javascripts/notebooklab.js b/vendor/assets/javascripts/notebooklab.js
index 601a645b655..1d87c7d6ce3 100644
--- a/vendor/assets/javascripts/notebooklab.js
+++ b/vendor/assets/javascripts/notebooklab.js
@@ -699,6 +699,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
//
//
+_marked2.default.setOptions({
+ sanitize: true
+});
+
exports.default = {
components: {
prompt: _prompt2.default