Files
DeepTutor/tests/services/web_source
Nurlan Mammadli 68b1536b88 fix(web-source): keep text after removed elements in HTML extraction
_remove_element used parent.remove(el), which in lxml also drops el.tail,
so text after a stripped button, icon or aria-hidden span was lost
("The answer is <span aria-hidden>*</span>42." became "The answer is").
Move the tail onto the previous sibling or the parent before removing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 16:49:13 -05:00
..