remove base and head tags in remove_script_and_style
This commit is contained in:
parent
fac05f6f9e
commit
5f08c638c8
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ frappe.utils = {
|
|||
remove_script_and_style: function(txt) {
|
||||
if (!txt || (txt.indexOf("<script")===-1 && txt.indexOf("<style")===-1)) return txt;
|
||||
return $("<div></div>").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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue