jquery.splitlines Split text block into lines layed out by browser. It makes only one change to innerHTML per block.