|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-19 21:52 UTC] john@php.net
[2004-08-19 15:47 UTC] ab at c dot de
[2004-08-30 16:52 UTC] john@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
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.