mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 08:05:31 +02:00
remove lazy loading attributes
This commit is contained in:
parent
d562d41b81
commit
42eb9daf65
1 changed files with 3 additions and 0 deletions
|
@ -583,6 +583,9 @@ impl FullTextParser {
|
|||
continue;
|
||||
}
|
||||
|
||||
_ = node.remove_attribute("decoding");
|
||||
_ = node.remove_attribute("loading");
|
||||
|
||||
for (name, val) in node.get_attributes() {
|
||||
if name == "src" || name == "srcset" || name == "alt" {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue