/ Published in: PHP
                    
                                        
Gets the outerHTML of a DOMElement. For a more optimal version check the URL.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php
function outerHTML($e) {
$doc = new DOMDocument();
$doc->appendChild($doc->importNode($e, true));
return $doc->saveHTML();
}
?>
URL: http://it-ride.blogspot.com/2009/11/domelement-innerhmtl.html
Comments
 Subscribe to comments
                    Subscribe to comments
                
                