Add calls to remove_scripts and prep_document
This commit is contained in:
parent
e1debf5630
commit
7fb09130e8
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ impl Readability {
|
||||||
}
|
}
|
||||||
pub fn parse(&mut self) {
|
pub fn parse(&mut self) {
|
||||||
self.unwrap_no_script_tags();
|
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
|
/// Recursively check if node is image, or if node contains exactly only one image
|
||||||
/// whether as a direct child or as its descendants.
|
/// whether as a direct child or as its descendants.
|
||||||
|
|
Reference in a new issue