robert-o
10/25/2016 - 6:33 PM

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) + '...');
});