Remove html from json feeds

merge-requests/30/head
Bob Mottram 2021-02-12 12:02:09 +00:00
parent c74b208b53
commit 39a0c7ba9e
1 changed files with 2 additions and 2 deletions

View File

@ -550,7 +550,7 @@ def _jsonFeedV1ToDict(baseDir: str, domain: str, xmlStr: str,
else:
if not isinstance(jsonFeedItem['content_text'], str):
continue
title = jsonFeedItem['content_text']
title = removeHtml(jsonFeedItem['content_text'])
if len(title) > maxBytes:
print('WARN: json feed title is too long')
continue
@ -558,7 +558,7 @@ def _jsonFeedV1ToDict(baseDir: str, domain: str, xmlStr: str,
if jsonFeedItem.get('description'):
if not isinstance(jsonFeedItem['description'], str):
continue
description = jsonFeedItem['description']
description = removeHtml(jsonFeedItem['description'])
if len(description) > maxBytes:
print('WARN: json feed description is too long')
continue