yanwong / ganon

Automatically exported from code.google.com/p/ganon
0 stars 0 forks source link

output from echoing $html is already decoded #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What will reproduce the problem?
$html = str_get_dom("<div>&nbsp;&gt;&lt;</div>");
echo $html;

What is the expected output? What do you see instead?
I expect the raw source code to be output, the same as what I put in. Instead, 
I get:
<div>�><</div>

Basically, it's the same as what I put in, but run through 
html_entity_decode(). Is there some way to get raw html?

Which version are you using?
PHP 5.3.3-7, ganon rev #69

Original issue reported on code.google.com by dcrol...@gmail.com on 1 Mar 2012 at 4:35

GoogleCodeExporter commented 8 years ago
Thank you very much for reporting.
To work around it using the current version, you can call $html->toString(true, 
true, 1) instead.

Original comment by niels....@gmail.com on 1 Mar 2012 at 11:50

GoogleCodeExporter commented 8 years ago
Great! Thank you for being so quick. This library is awesome!

Original comment by dcrol...@gmail.com on 1 Mar 2012 at 3:08