def filter_plaintext_fields(item): """Filter out html from plaintext fields.""" for field in PLAINTEXT_FIELDS: if field in item: item[field] = plaintext_filter(item[field])
def filter_plaintext_fields(item): """Filter out html from plaintext fields.""" for field in PLAINTEXT_FIELDS: if field in item: item[field] = plaintext_filter(item[field])