added ability to get the opening and closing tag html