Perfect. Looks like lxml's text_content is smarter than I thought.