diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-05-03 15:15:50 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-05-03 15:15:50 -0700 |
commit | c8df8a7c8cd73f680fa2d0422d93e2ed29e2fd16 (patch) | |
tree | 9675e0f4e0360130f9c0d0cad3772f4675de991b /assets/js/components/text-editor.js | |
parent | 46cefbc2baf2ea66024073d1eb3a254fa95fd6b1 (diff) |
Fix escaping issue for Markdown editor
Diffstat (limited to 'assets/js/components/text-editor.js')
-rw-r--r-- | assets/js/components/text-editor.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/components/text-editor.js b/assets/js/components/text-editor.js index 57bc0f78..e9ab4c80 100644 --- a/assets/js/components/text-editor.js +++ b/assets/js/components/text-editor.js @@ -62,7 +62,8 @@ KB.component('text-editor', function (containerElement, options) { } // Order is important for IE11 (especially for the placeholder) - textareaElement.text(options.text); + var textWrapper = KB.dom(containerElement).find('script'); + textareaElement.text(textWrapper.innerText); if (options.placeholder) { textareaElement.attr('placeholder', options.placeholder); |