Skip to content

Commit

Permalink
fix(formatter) Modified formatter to strip html for bulletin builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayur Dhamanwala committed Aug 11, 2016
1 parent a95b1ed commit c68ed61
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def format(self, article, subscriber, codes=None):
to_ascii(formatted_article.get('abstract', ''))).strip()
formatted_article['headline'] = self.get_text_content(
to_ascii(formatted_article.get('headline', ''))).strip()
formatted_article['byline'] = self.get_text_content(
to_ascii(formatted_article.get('byline', ''))).strip()

# get the first category and derive the locator
category = next((iter(formatted_article.get('anpa_category', []))), None)
Expand Down

0 comments on commit c68ed61

Please sign in to comment.