If you wanto to chop the huge string in many parts and then show them in a cell with
br between any substring, try this script
<script type="text/javascript">
function switchcontent()
{
finalstr = '';
l=10; //number of characters allowed per line
originalstr=document.getElementById('thecell').textContent;
copyoriginal=document.getElementById('thecell').textContent;
if (copyoriginal.length>=10)
{
ltimes=Math.ceil(copyoriginal.length/l);
for (i=1; i<ltimes; i++)
{
finalstr = finalstr + copyoriginal.substr(0,l) + '<br />';
copyoriginal=copyoriginal.slice(l);
}
finalstr = finalstr + copyoriginal;
replacestr='<a href="'+originalstr+'">'+finalstr+'</a>';
document.getElementById('thecell').innerHTML=replacestr;
}
}
</script>
<table><tr>
<td id="thecell"><a href="http://longlonglonglonglonglonglonglonglong.url">
http://longlonglonglonglonglonglonglonglong.url</a></td>
</tr></table>
<input type="button" value="add breaklines" onclick="switchcontent();" />
hth