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?
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.
.innerHTML
, , : http://www.dynamit.us/blog/2009/03/php-dom-innerhtml-method/
Source: https://habr.com/ru/post/1762590/More articles:how to get innerhtml by class name or id using php - domAlgorithms: repeating relationships from CLRS - algorithmHow to hide devexpress XtraGrid column - c #Shooting with AVD - cameraКаков наилучший подключаемый модуль jQuery для глубокого связывания/истории? - jqueryxPath does not extract HTML as part of the content - phpHow to call the ESC button to delete the text entered in the text box? - javascriptПочему MySQL Полный текстовый индекс не работает? - mysqlHow to parse CSV with comma-containing values? - phpDrupal: I need to display the username in the block - drupalAll Articles