advanced_html_dom icon indicating copy to clipboard operation
advanced_html_dom copied to clipboard

Can output tags not outputted by simple_html_dom

Open chrisjj opened this issue 8 years ago • 0 comments

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.".

chrisjj avatar Nov 16 '16 16:11 chrisjj