I convert a string of HTML into an object so I can manipulate like this
var HTMLStr = "<div><span>TESTING</span></div><h1>HEADING</h1><div class='two'>sjdufhs</div>";
var HTMLDom = $(HTMLStr).find("h1").remove();
var newHTMLStr = ???
Question: How can I convert the HTMLDom back into a string after manipulation?
I have tried the following: https://stackoverflow.com/a/652771/3758078 But that only converts the first element found, and not the rest. Especially if theres no element containing all other elements.
element removed.
– Jul 15 '16 at 22:26