From 9d87a34f25d253ccce319ba20faa83553cb940f5 Mon Sep 17 00:00:00 2001 From: relrelb Date: Fri, 17 Dec 2021 14:49:21 +0200 Subject: [PATCH] html: Ignore tag errors Flash stops parsing the XML in such cases, but still returns the partially-processed text. --- core/src/html/text_format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/html/text_format.rs b/core/src/html/text_format.rs index e32d887cd..546be59d7 100644 --- a/core/src/html/text_format.rs +++ b/core/src/html/text_format.rs @@ -762,7 +762,7 @@ impl FormatSpans { Ok(Event::Eof) => break, Err(e) => { log::warn!("Error while parsing HTML: {}", e); - return Default::default(); + break; } _ => {} }