|
|
@@ -59,7 +59,10 @@ class News():
|
|
|
self.SUMMARY=a.summary
|
|
|
self.TEXT=a.text
|
|
|
self.TITLE=a.title
|
|
|
- self.HTML=htmlmin.minify(a.article_html,remove_empty_space=True)
|
|
|
+ if html is None:
|
|
|
+ self.HTML=htmlmin.minify(a.article_html,remove_empty_space=True)
|
|
|
+ else:
|
|
|
+ self.HTML=htmlmin.minify(html,remove_empty_space=True)
|
|
|
self.ERROR=False
|
|
|
lowertext=self.TEXT.lower()
|
|
|
for k in kw:
|