Trim after n characters http://stackoverflow.com/questions/8427295/javascript-to-trim-after-n-characters
$("#anchor").each (function () { if ($(this).text().length > 50) $(this).text($(this).text().substring(0,50) + '...'); });