From 7fb09130e80c0d76611a8914a872cc4e8131de0c Mon Sep 17 00:00:00 2001 From: Kenneth Gitere Date: Mon, 31 Aug 2020 20:40:37 +0300 Subject: [PATCH] Add calls to remove_scripts and prep_document --- src/moz_readability/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/moz_readability/mod.rs b/src/moz_readability/mod.rs index 170d7e8..b17a566 100644 --- a/src/moz_readability/mod.rs +++ b/src/moz_readability/mod.rs @@ -29,6 +29,8 @@ impl Readability { } pub fn parse(&mut self) { self.unwrap_no_script_tags(); + self.remove_scripts(); + self.prep_document(); } /// Recursively check if node is image, or if node contains exactly only one image /// whether as a direct child or as its descendants.