I use jQuery method to get some type of html object:
var content = $('#cke_ckeditor iframe').contents().find('.cke_show_borders').clone();
Then I want to convert it to type string:
console.log(content[0].toString());
but the result:
[object HTMLBodyElement]
How can I turn it into a real string?
By the way, can I convert the converted html string to an html object?
source
share