Sanitize data before displaying in markdown editor (#3205)

* Sanitize data before displaying in markdown editor

* Use the sanitize option provided by easymde

* Spelling fix
This commit is contained in:
Oliver authored and GitHub committed 2022-06-16 10:57:28 +10:00
1 parent e83995b4f5
commit 9bd62f986f
2 files changed
+6 -1

No files matched your search

@@ -274,6 +274,11 @@ function setupNotesField(element, url, options={}) {
initialValue: initial,
toolbar: toolbar_icons,
shortcuts: [],
renderingConfig: {
markedOptions: {
sanitize: true,
}
}
});