mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove <button> from all recipe downloads
This commit is contained in:
parent
25adcae5b5
commit
773f7676b5
@ -1032,7 +1032,7 @@ class BasicNewsRecipe(Recipe):
|
|||||||
for attr in self.remove_attributes:
|
for attr in self.remove_attributes:
|
||||||
for x in soup.findAll(attrs={attr:True}):
|
for x in soup.findAll(attrs={attr:True}):
|
||||||
del x[attr]
|
del x[attr]
|
||||||
for bad_tag in list(soup.findAll(['base', 'iframe', 'canvas', 'embed',
|
for bad_tag in list(soup.findAll(['base', 'iframe', 'canvas', 'embed', 'button',
|
||||||
'command', 'datalist', 'video', 'audio', 'noscript', 'link', 'meta'])):
|
'command', 'datalist', 'video', 'audio', 'noscript', 'link', 'meta'])):
|
||||||
# link tags can be used for preloading causing network activity in
|
# link tags can be used for preloading causing network activity in
|
||||||
# calibre viewer. meta tags can do all sorts of crazy things,
|
# calibre viewer. meta tags can do all sorts of crazy things,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user