note 98559 deleted from class.domelement by joey

[email protected] Fri, 18 Feb 2011 01:47:08 -0800
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: martin at larsen dot dk 

----

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.