Made bender.tools.getHtmlWithRange() use element clone to preserve DOM structure of the original element.