Created
October 1, 2012 18:29
-
-
Save bmease/3813550 to your computer and use it in GitHub Desktop.
When trying to parse underscore templates with lxml.html it is dropping the underscore variable tags.
This file contains 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
>>> import lxml.html | |
>>> content = "<html><%= SoftwareName %></html>" | |
>>> doc = lxml.html.fromstring(content) | |
>>> lxml.html.tostring(doc) | |
'<html></html>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment