How to get p tag text "Blahblah" in this situation :
when p tag text field is behind a strong tag, it can not be recognized by lxml.
<p class="user_p"><strong>cc</strong>Blahblah</p>
====code====
from lxml import html
content="""
<div>
<p class="user_p">Blahblah<strong>cc</strong></p>
<p class="user_p"><strong>cc</strong>Blahblah</p>
</div>
"""
tree = html.fromstring(content.decode('utf-8'))
p = tree.xpath('//div/p')
print p[0].text
print p[1].text
====output====
Blahblah
None