I am experimenting with lxml and python for the first time for a personal project, and I am attempting to strip tags from a bit of source code using etree.strip_tags().
For some reason, I keep getting the error message: "E1101: Module 'lxml.etree' has no 'strip_tags' member'".
I'm not sure why this is happening.
Here's the relevant portion of my code:
from lxml import etree
...
DOC = etree.strip_tags(DOC_URL, 'html')
print DOC
Any ideas?
Thanks.
etree
has been re-defined. Possible? – Greasepaint