Closed jakejackson1 closed 1 year ago
echo qp('<div></div>')->innerHtml();
reutrns <body> <div/></body>
It seems there is no difference between the output of html5() and html()
Does innerHtml()
work?
You may also consider switching the parser to the HTML5 one. It's less picky than the built-in libxml
html 4 parser. I can't remember if it will make a difference, but you can try html5()
instead of html
and see if that helps.
From querypath created by salarmehr: technosophos/querypath#178
Running
similar to other jQuery PHP implementation, I expect to get
<div>s</div>
but it returns a complete document:and I have to use
qp('<div>s</div>')->top('body *')->html();
which is cumbersome. In particular when use what to build several section of a page programmatically and merge them