remove closing tag for options