Unline phpQuery, Running
echo qp('<div>s</div>')->html();
I expect to get <div>s</div> but it returns a complete document:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><div>s</div></body></html>
How do I prevent it from adding doctype, html and body tags?
Currently, as a workaround I can use qp('<div>s</div>')->top('body *')->html(); for that. But I seek a cleaner way.
According to this: