Created
June 15, 2018 09:59
-
-
Save lapshinmr/60f0e9038515684230904eaf6896e3f0 to your computer and use it in GitHub Desktop.
element inner html parsing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| title = title_el.text or '' | |
| for part in title_el: | |
| title += part.text | |
| title += part.tail or '' | |
| title2 = etree.tostring(title_el, method='text', encoding='utf-8').decode('utf-8') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment