@cached_property
    def displayed_words(self):
        """
        Return the number of words displayed in the preview.
        """
        return (len(strip_tags(self.preview).split()) -
                (len(self.more_string.split()) * int(not bool(self.lead))))
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/preview.py/HTMLPreview.displayed_words/original