fix note history xss

This commit is contained in:
lealife committed 2021-03-27 16:12:46 +08:00
1 parent 14643d3cf4
commit 0f9733c890
1 file changed
+1
+1
View File
@@ -49,6 +49,7 @@ define('history', [], function() {
if (this.note.IsMarkdown) { if (this.note.IsMarkdown) {
wrap = '<pre>'; wrap = '<pre>';
wrapEnd = '</pre>'; wrapEnd = '</pre>';
content = trimTitle(content) // for xss
} }
$historyContent.html(wrap + content + wrapEnd); $historyContent.html(wrap + content + wrapEnd);