var trunc='Weekends don\'t have to mean sweats and gym gear. Take inspiration from these five celebrities and make your next brunch outfit one that\'s sure to impress your friends.'; function getLeadingHtml (input, maxChars) { var token = /\w+|[^\w<]|<(\/)?(\w+)[^>]*(\/)?>|"; return output; }; trunc = getLeadingHtml(trunc,47) trunc=(trunc+'...'); document.write('
');