Add calls to remove_scripts and prep_document

This commit is contained in:
Kenneth Gitere 2020-08-31 20:40:37 +03:00
parent e1debf5630
commit 7fb09130e8

View file

@ -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.