Posted By


Znupi on 11/22/09

Tagged


Statistics


Viewed 982 times
Favorited by 0 user(s)

Related snippets


DOMElement outerHTML


/ Published in: PHP
Save to your folder(s)

Gets the outerHTML of a DOMElement. For a more optimal version check the URL.


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. function outerHTML($e) {
  4. $doc = new DOMDocument();
  5. $doc->appendChild($doc->importNode($e, true));
  6. return $doc->saveHTML();
  7. }
  8.  
  9. ?>

URL: http://it-ride.blogspot.com/2009/11/domelement-innerhmtl.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.