get the outerHTML of selected elements