Open eromoe opened 8 years ago
Hmm, I wanted to open a new issue, but mine might be the same:
>>> print "LINK HTML", repr(d('.portlet:first a').html())
>>> print "LINK TEXT", repr(d('.portlet:first a').text())
>>> print "FIND HTML", repr(d('.portlet:first').find('a').html())
>>> print "FIND TEXT", repr(d('.portlet:first').find('a').text())
LINK HTML '\n \n First Division\n '
LINK TEXT 'First Division Second Division'
FIND HTML '\n \n First Division\n '
FIND TEXT 'First Division Second Division'
output:
pyquery ignore
:first
and take all.xw1