note 38680 added to function.tidy-setopt
| From: | fabrice at scriptsphp dot net | Date: | Fri, 02 Jan 2004 17:47:40 +0000 |
| Subject: | note 38680 added to function.tidy-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62799@lists.php.net to get a copy of this message | ||
It seems that tidy_setopt() expects three parameters and not two , the first one should be an object
from tidy_parse_string() or tidy_parse_file().
bool tidy_setopt ( object tidy , string option , mixed newvalue )
ex :
<?php
$O = tidy_parse_file( 'http://site.net/page.html' );
tidy_setopt( $O , 'output-xhtml' , true );
echo tidy_get_output( $O );
?>
also , you can find there the configuration options you can pass to tidy_setopt() :
http://tidy.sourceforge.net/docs/quickref.html
----
Manual Page -- http://www.php.net/manual/en/function.tidy-setopt.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38680
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38680&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38680&report=yes
Search -- http://master.php.net/manage/user-notes.php