From c8df8a7c8cd73f680fa2d0422d93e2ed29e2fd16 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 3 May 2018 15:15:50 -0700 Subject: Fix escaping issue for Markdown editor --- assets/js/components/text-editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'assets/js/components') 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); -- cgit v1.2.3