'Attempt to get the document summary from rendered content, with
fallback to raw HTML'

def get_summary(self, strip_markup=True, use_rendered=True):

    if (use_rendered and self.rendered_html):
        src = self.rendered_html
    else:
        src = self.html
    return get_seo_description(src, self.locale, strip_markup)
