ID: 28841
Updated by: [EMAIL PROTECTED]
Reported By: mlee at kanhan dot com
-Status: Open
+Status: Assigned
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 5.0.0RC3
-Assigned To:
+Assigned To: john
New Comment:
Currently in HEAD this actually segfaulting inside of libtidy itself.
I'm not sure if this is a libtidy bug, or if the extension is doing
something it shouldn't be. I'll look into it and see what I can dig up.
Previous Comments:
------------------------------------------------------------------------
[2004-06-19 17:01:51] mlee at kanhan dot com
Description:
------------
Supposedly Tidy should "strip out surplus presentational tags and
attributes replacing them by style rules and structural markup as
appropriate" if the "clean" option is set. For example:
<?php
$conf = array("clean" => TRUE);
$tidy = tidy_parse_file("clean_ex1.html", $conf);
tidy_clean_repair($tidy);
echo $tidy;
?>
And clean_ex1.html looks like this:
<HTML><HEAD><TITLE><TITLE></HEAD>
<BODY>
<FONT COLOR="red">Hello, World!</FONT><BR/>
<B><FONT SIZE=4 COLOR=#c0c0c0>More Text...</FONT></B>
</BODY>
</HTML>
It seems that Tidy just removes the font tags without adding any style
rules.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28841&edit=1