Open karolyi opened 11 years ago
Hi, when i try to parse a html string with an image in it, the text after the image element is appended the original image tag. Tested in python command line:
>>> import pyquery >>> a = pyquery.PyQuery('<p>asdasd<img src="a/b">asdasdddddddd</p>') >>> print a <p>asdasd<img src="a/b"/>asdasdddddddd</p> >>> a.find('img') [<img>] >>> print a.find('img') <img src="a/b"/>asdasdddddddd
the parser behind pyquery is lxml 3.1.0.
Suggestions?
No. Looks like not so easy to solve
Hi, when i try to parse a html string with an image in it, the text after the image element is appended the original image tag. Tested in python command line:
the parser behind pyquery is lxml 3.1.0.
Suggestions?