How to get innerHtml body without iframe with jquery
3 answers
I found another way to do this
var page = $('body').html(); page = $('<div>' + page + '</div>'); var html = $(page).find('iframe').remove().end().html(); The html variable contains html without an iframe.
And it works with IE since jquery.clone () does not work on my page, maybe due to incorrect html like @lonesomeday suggested
0