int pos1 = tmpallstr.indexof( blockb );
int pos2 = tmpallstr.indexof( blocke,pos1 + blockb.length );
if ( pos1>0 && pos2>0 && pos2>pos1 )
{
ret = tmpallstr.substring( pos1 + blockb.length,pos2 - pos1 - blockb.length );
ret = ret.substring( ret.indexof( "<" ));
while( ret.indexof( "<a" ) >= 0 )
{
ret = ret.substring( 0,ret.indexof( "<a" ) ) + "<a" + ret.substring( ret.indexof( "<a" ) + 2 );
}