From 7737311a921c193a6ba44332aef511b8551b30b2 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Sun, 19 Mar 2023 13:31:10 +0100 Subject: [PATCH] small fix --- src/full_text_parser/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/full_text_parser/mod.rs b/src/full_text_parser/mod.rs index c146463..af8dd9f 100644 --- a/src/full_text_parser/mod.rs +++ b/src/full_text_parser/mod.rs @@ -914,8 +914,7 @@ impl FullTextParser { let total_count = img_count + embed_count + object_count + iframe_count; if total_count == 0 && Util::get_inner_text(&node, false).trim().is_empty() { - node_iter = Util::next_node(&node, true); - node.unlink(); + node_iter = Util::remove_and_next(&mut node); continue; } }