def deal_content(content): content = libgezi.strip_html(content) if len(content) > 100: content = libgezi.gbk_substr(content, 0, 100) content = content + ' ' + libgezi.normalize_str(content) return content
def deal_title(title): return title + ' ' + libgezi.normalize_str(title)
def deal_title(self, title): return libgezi.normalize_str(title)