<% var body = ''; var characterCount = 120; if (nextArticle.hasOwnProperty('body')) { body = nextArticle.body.replace(/(<([^>]+)>)/ig,"").trim(); body.substring(0, characterCount); body.length > characterCount ? '...' : '' } %> <%= body.substring(0, characterCount) %> <%= body.length > characterCount ? '...' : '' %>
View article