Closed Scarfmonster closed 2 years ago
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
Could you add tests to cover the change?
https://github.com/scrapy/parsel/issues/215 shows a cleaner way to handle this.
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