PHP Code Function get Dom Node Inner HTML
PHP Function Code to Get the innerHTML of a DOM Element in PHP
Home
Short:
function innerHTML ( DOMNode $elm ) { $innerHTML = ''; $children = $elm->childNodes; foreach($children as $child) { $innerHTML .= $elm->ownerDocument->saveHTML($child); } return $innerHTML; }
source code home