Skip to content

Instantly share code, notes, and snippets.

@bmease
Created October 1, 2012 18:29
Show Gist options
  • Save bmease/3813550 to your computer and use it in GitHub Desktop.
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.
>>> 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