Exemple #1
0
 def abstract(self, limit=140):
     return truncate(striptags(self.content or '').strip(), limit, killwords=True)
Exemple #2
0
 def abstract(self, limit=140, killwords=True):
     return truncate((self.summary or '').strip() or
             striptags(self.content or '').strip(), limit, killwords)
Exemple #3
0
 def abstract(self, limit=140):
     return truncate((self.summary or '').strip() or striptags(self.desc or '').strip(), limit)