HI I am using one normal c code for removing all tables and display the rest in a single row.Here is the code I am using.it may luk very basic codingwhile(end of buffer){ ch = inbuf[j++]; if(ch=='<') { outbuf = ch; if(((ch=inbuf[j++]) =='t')) { if(((tempch=inbuf[j++])=='d')) while((ch = inbuf[j++])!='>'); else { i++; outbuf[i++] = ch; outbuf[i++] = tempch; flag = 1; } } else if(ch=='/') { if(((tempch=inbuf[j++])=='t')) { if((tempch2=inbuf[j++])=='d') { ch=inbuf[j++]; outbuf[i++]= '<'; outbuf[i++]= 'b'; outbuf[i++]= 'r'; outbuf[i++]= '>'; } else if(tempch2=='i') { k=0; outbuf[i++]='<'; outbuf[i++]=ch; word[k++] = tempch; outbuf[i++]=tempch; word[k++] = te mpch2; outbuf[i++]=tempch2; //outbuf[i++]=tempch; for(;k<6;k++) { word[k] = inbuf[j++]; outbuf[i++] = word[k]; } word[k] ='\0'; if((strcmp(word,"title>"))==0) { outbuf='\0'; strcat(outbuf,tbstr); i=i+strlen(tbstr); } } else { i++; outbuf[i++]=ch; outbuf[i++]=tempch; outbuf[i++]=tempch2; } } else { i++; outbuf[i++]=ch; outbuf[i++]=tempch; } } else { i++; outbuf[i++]=ch; } } else outbuf[i++]=ch; } outbuf='\0';i didnt use any resizing for images as of now.. ... but m getting the outut with all the lines in it. frm one end to another.. horizontally. confused what to be done?