Closed Castellanox7 closed 9 years ago
Good morning. You basically want this:
$('#foo').rss({
entryTemplate: '<p>{truncatedTitle}</p>',
tokens: {
truncatedTitle: function (entry, tokens) {
return tokens.title.slice(0, 5) + '...';
}
}
});
This will give you the first 5 chars of the title.
Awesome. Thanks, Sd!
Good morning,
Is there any support for wanting to truncate the {titles} retrieved by the RSS feed?
For example, "This is a Test Post", becomes "This is a Test..."
Thank you.