From 5f08c638c8a7fbc213a85a75bb88ffb33a36b345 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Sun, 5 Apr 2015 21:31:43 +0530 Subject: [PATCH] remove base and head tags in remove_script_and_style --- frappe/public/js/frappe/misc/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/misc/utils.js b/frappe/public/js/frappe/misc/utils.js index 21a8ef2979..6251572c1e 100644 --- a/frappe/public/js/frappe/misc/utils.js +++ b/frappe/public/js/frappe/misc/utils.js @@ -50,7 +50,7 @@ frappe.utils = { remove_script_and_style: function(txt) { if (!txt || (txt.indexOf("").html(txt) - .find("script,noscript,style,title,meta").remove().end() + .find("script,noscript,style,title,meta,base,head").remove().end() .html(); }, toggle_blockquote: function(txt) {