XPath does not extract HTML as part of what is needed

Possible duplicate:
xPath does not extract HTML as part of the content

I parse the web page using xPath and retrieving the contents of the div element, it skips the HTML contained in that div element. How to make it get all the contents of a div element with HTML enabled?

0
source share
1 answer

If it were in Javascript, I would just say that use an attribute .innerHTMLthat will retrieve the entirety of the contents of any given node. But since you are in PHP, there is no such function.

, , : http://www.dynamit.us/blog/2009/03/php-dom-innerhtml-method/

0

Source: https://habr.com/ru/post/1762590/


All Articles