PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<tidy_set_encodingtidy_warning_count>
Last updated: Mon, 16 Jul 2012

tidy_setopt

(no version information, might be only in CVS)

tidy_setopt --  Updates the configuration settings for the specified tidy document

Description

bool tidy_setopt ( string option, mixed value )

tidy_setopt() updates the specified option with a new value.

例子 1. tidy_setopt() example

<?php
$html
= '<p>test</i>';

$tidy = tidy_parse_string($html);

tidy_setopt('indent', FALSE);
?>

See also tidy_getopt(), tidy_get_config(), tidy_reset_config() and tidy_save_config().

注: 本函数只在 Tidy 1.0 中存在。在 Tidy 2.0 中,该函数已过时并被移除。




<tidy_set_encodingtidy_warning_count>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST