note 98559 modified in class.domelement by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Jun 2010 15:17:06 +0000 |
| Subject: | note 98559 modified in class.domelement by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170443@lists.php.net to get a copy of this message | ||
This is a very simple way to get the innerHTML of a node:
<?php
function getNodeInnerHTML($elem) {
return simplexml_import_dom($elem)->asXML();
}
?>
I had trouble making other suggestions works, but this works perfectly for me.
--was--
This is a very simple way to get the innerHTML of a node:
function getNodeInnerHTML($elem) {
return simplexml_import_dom($elem)->asXML();
}
I had trouble making other suggestions works, but this works perfectly for me.
http://php.net/manual/en/class.domelement.php