sanitize markdown before rendering to prevent XSS

draw rainbox borders on element redraws in vdom method.
This lets us see what being redrawn, as the vdom.diff method
is breaking a few things.
This commit is contained in:
ansuz committed 2016-01-30 13:54:12 +01:00
1 parent 13f5371199
commit 2e3b424a1a
2 files changed
+75 -17

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ define([
var $textarea = $('textarea'),
$target = $('#target');
Marked.setOptions({
sanitize: true
});
var draw = function (content) {
// draw stuff
$target.html(Marked(content));