mirror of
https://github.com/codelucas/newspaper.git
synced 2025-12-23 05:36:50 +00:00
update parser allow tags
This commit is contained in:
parent
3111a985ba
commit
d47fed39b7
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ class Parser(object):
|
|||
article_cleaner = Cleaner()
|
||||
article_cleaner.javascript = True
|
||||
article_cleaner.style = True
|
||||
article_cleaner.allow_tags = ['a', 'span', 'p', 'br', 'strong', 'b', 'em']
|
||||
article_cleaner.allow_tags = ['a', 'span', 'p', 'br', 'strong', 'b']
|
||||
article_cleaner.remove_unknown_tags = False
|
||||
return article_cleaner.clean_html(node)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue