advanced_html_dom
advanced_html_dom copied to clipboard
Can output tags not outputted by simple_html_dom
With simple_html_dom this code:
<?php
include 'simple_html_dom.php';
print(str_get_html('x')->innertext );
outputs x
http://i.imgur.com/F4NiX1N.png , whereas with advanced_html_dom.php
<?php
include 'advanced_html_dom.php';
print(str_get_html('x')->innertext );
it outputs <body><p>x</p></body>
http://i.imgur.com/8mCrfGO.png .
This could be a problem to anyone relying on advanced_html_dom's "The goal of this project is to be a DOM-based drop-in replacement for PHP's simple html dom library ... If you use file/str_get_html then you don't need to change anything.".