parsel
parsel copied to clipboard
Keep element's tailing text after removing it
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.