From 3c772302b0d16f1ab6aa5029b610609a9d8b979c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 20 Apr 2015 11:14:39 -0400 Subject: [PATCH] remove script and style in text-editor's setup_input --- frappe/public/js/frappe/form/control.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/public/js/frappe/form/control.js b/frappe/public/js/frappe/form/control.js index abf4739fc5..c895d6c62a 100644 --- a/frappe/public/js/frappe/form/control.js +++ b/frappe/public/js/frappe/form/control.js @@ -1273,6 +1273,7 @@ frappe.ui.form.ControlTextEditor = frappe.ui.form.ControlCode.extend({ } }, _set_input: function(value) { + value = frappe.utils.remove_script_and_style(value); this.editor.set_input(value); this.md_editor.val(value); this.last_value = value;