int i=0;
int doneto=0;
while (i<len-2) {
if (array[i]==']' && array[i+1]==']' && array[i+2]=='>') {
nextReceiver.characters(new CharSlice(array, doneto, i+2-doneto), 0, chprop);
nextReceiver.characters("]]><![CDATA[", 0, chprop);
doneto=i+2;
} else if (array[i]==0) {
nextReceiver.characters(new CharSlice(array, doneto, i-doneto), 0, chprop);
doneto=i+1;
}
i++;
}
nextReceiver.characters(new CharSlice(array, doneto, len-doneto), 0, chprop);
nextReceiver.characters("]]>", 0, chprop);
}