diff --git a/resources/tests/readability/buzzfeed-1/expected.html b/resources/tests/readability/buzzfeed-1/expected.html index 19e4069..561d2e3 100644 --- a/resources/tests/readability/buzzfeed-1/expected.html +++ b/resources/tests/readability/buzzfeed-1/expected.html @@ -10,7 +10,7 @@

“She was literally burning up from within.”

She added: “They never stood a chance of saving her. She burned and crashed.”

-
+

Facebook

diff --git a/resources/tests/readability/buzzfeed-1/source.html b/resources/tests/readability/buzzfeed-1/source.html index f51556a..978e764 100644 --- a/resources/tests/readability/buzzfeed-1/source.html +++ b/resources/tests/readability/buzzfeed-1/source.html @@ -3519,7 +3519,7 @@

“She was literally burning up from within.”

She added: “They never stood a chance of saving her. She burned and crashed.”

-
+
diff --git a/src/full_text_parser/readability/mod.rs b/src/full_text_parser/readability/mod.rs index e0bd922..85897b3 100644 --- a/src/full_text_parser/readability/mod.rs +++ b/src/full_text_parser/readability/mod.rs @@ -188,17 +188,17 @@ impl Readability { node = Util::next_node(node_ref, false); } - let html = document.to_string_with_options(libxml::tree::SaveOptions { - format: true, - no_declaration: false, - no_empty_tags: true, - no_xhtml: false, - xhtml: false, - as_xml: false, - as_html: true, - non_significant_whitespace: false, - }); - std::fs::write("debug.html", &html).unwrap(); + // let html = document.to_string_with_options(libxml::tree::SaveOptions { + // format: true, + // no_declaration: false, + // no_empty_tags: true, + // no_xhtml: false, + // xhtml: false, + // as_xml: false, + // as_html: true, + // non_significant_whitespace: false, + // }); + // std::fs::write("debug.html", &html).unwrap(); let mut candidates = Vec::new(); // Loop through all paragraphs, and assign a score to them based on how content-y they look.