This project has moved and is read-only. For the latest updates, please go here.

Excerpt of comments

Nov 24, 2010 at 3:55 PM
Edited Nov 24, 2010 at 3:56 PM

Hi, one more question: is there a way to return the excerpt of comments like there is for posts? I show the most recent comments on the site, but in case of long comments I don't want to show the whole but a excerpt. Do I have to extend the functionality by myself or is there a built in function which I didn't find?

Nov 24, 2010 at 4:09 PM

You can use: $macros.TruncateHTML(string html, int len)

Nov 25, 2010 at 7:34 AM

Thanks for this nice hint. Works perfectly!