var trunc='We visited the NYC kitchen of the celebrity chef and nutritionist behind Food Matters, Tricia Williams, who gave us a foolproof food plan that will have you feeling great (and shedding pounds!) just in time for summer.'; function getLeadingHtml (input, maxChars) { var token = /\w+|[^\w<]|<(\/)?(\w+)[^>]*(\/)?>|"; return output; }; trunc = getLeadingHtml(trunc,47) trunc=(trunc+'...'); document.write('
');