parsel icon indicating copy to clipboard operation
parsel copied to clipboard

Keep element's tailing text after removing it

Open Scarfmonster opened this issue 4 years ago • 2 comments

Lxml by design removes the text after removed element. This change removes the element and keeps the trailing text by appending it to the previous element or to the parent.

Fixes #206

Scarfmonster avatar Jan 04 '21 21:01 Scarfmonster

Could you add tests to cover the change?

Gallaecio avatar Feb 21 '21 16:02 Gallaecio

https://github.com/scrapy/parsel/issues/215 shows a cleaner way to handle this.

Gallaecio avatar Apr 19 '21 09:04 Gallaecio