All:
What I want to do is:
<div id="container">
<div class="unwanted"></div>
<div class="unwanted"></div>
<svg><rect></rect></svg>
<div class="unwanted"></div>
<div>
How can I get the innerHTML of #container for that svg, so what I get is:
"<svg><rect></rect></svg>"