downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

tidy_warning_count> <tidy_set_encoding
[edit] Last updated: Fri, 25 May 2012

view this page in

tidy_setopt

(PECL tidy >= 0.5.2)

tidy_setopt Modifie la valeur de l'option de configuration Tidy

Description

bool tidy_setopt ( string $option , mixed $value )

tidy_setopt() configure l'option option avec la nouvelle valeur value.

Liste de paramètres

option

Le nom de l'option. Pour une explication sur chaque option, voyez » http://tidy.sourceforge.net/docs/quickref.html.

value

La valeur de l'option.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Exemples

Exemple #1 Exemple avec tidy_setopt()

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

$tidy tidy_parse_string($html);

tidy_setopt('indent'FALSE);
?>

Notes

Note: Cette fonction n'est disponible qu'avec Tidy 1.0. Elle a été abandonnée en Tidy 2.0 et a donc été supprimée.

Voir aussi



add a note add a note User Contributed Notes tidy_setopt
Anonymous 07-Apr-2008 11:46
If you are using the object oriented style of Tidy options are set when calling tidy::parseString(...).

Read more at http://us3.php.net/manual/en/function.tidy-parse-string.php

 
show source | credits | stats | sitemap | contact | advertising | mirror sites