Forum Discussion
phoneboy
6 years agoDirector
Looks like this is the way to do it and output the result without escaping the HTML:
<#assign body = (page.context.thread.topicMessage.body)!"" />
<#assign truncatedBody = utils.html.truncate(1000, body, "...")>
${truncatedBody?no_esc};
Related Content
- 8 years ago
- 9 years ago