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: Thu, 26 Jun 2008

tidy_setopt

(PECL tidy:0.5.2-1.2)

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 . You will find a list with each configuration option at: » http://tidy.sourceforge.net/docs/quickref.html.

Example #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().

Note: This function is only available in Tidy 1.0. It became obsolete in Tidy 2.0, and thus has been removed.



add a noteadd a note User Contributed Notes
Updates the configuration settings for the specified tidy document
There are no user contributed notes for this page.




<tidy_set_encodingtidy_warning_count>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs