(content)
return truncatechars_html(content, blogsetting.article_sub_length)
获得文章内容的摘要
    :param content:
    :return:
获得文章内容的摘要
    :param content:
    :return:
获得文章内容的摘要 : param content : : return :
def truncatechars_content(content):
    """
    获得文章内容的摘要
    :param content:
    :return:
    """
    from django.template.defaultfilters import truncatechars_html
    from djangoblog.utils import get_blog_setting
    blogsetting = get_blog_setting()
    return truncatechars_html(content, blogsetting.article_sub_length)
def truncatechars_content ( content ) : from django . template . defaultfilters import truncatechars_html from djangoblog . utils import get_blog_setting blogsetting = get_blog_setting ( ) return truncatechars_html ( content , blogsetting . article_sub_length )