added possibility to parse until an "endtag"