I would like to convert a html element created from a string back to the string after some modifications. But I get an empty string instead.
$(\'
(document.body.outerHTML).constructor will return String. (take off .constructor and that's your string)
(document.body.outerHTML).constructor
String
.constructor
That aughta do it :)