Ihaveafunctionthatputsthefamous3dots...
afterxcharacters.ButIamindoubthowtomakethereticencesenterexactlyattheendofthewordwherethelimitofcharacters.HereisthecodeI'musing:
$(function(){$(".limit").each(function(i){
len=$(this).text().length;
if(len>60)
{
$(this).text($(this).text().substr(0,80)+'...');
}
});
});