def build_entry_content(entry, teaser=False, teaser_size=None): from lxml.html.clean import clean_html content = clean_html(parse_entry_content(entry)) if teaser: content = truncate_html(content, teaser_size) return content
def parse_entry_teaser(entry, size): content = truncate_html(parse_entry_content(entry), size) return content