From 51dbae9fc36388c9ad3461b3364d50cbda5f38ae Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 21 Feb 2004 10:41:02 +0000 Subject: [PATCH] some more tidy documentation and examples git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@151991 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../tidy/functions/tidy-access-count.xml | 5 +-- .../tidy/functions/tidy-clean-repair.xml | 45 +++++++++++++++++-- .../tidy/functions/tidy-config-count.xml | 26 +++++++++-- 3 files changed, 65 insertions(+), 11 deletions(-) diff --git a/reference/tidy/functions/tidy-access-count.xml b/reference/tidy/functions/tidy-access-count.xml index 6bb114a346..4a6953efab 100644 --- a/reference/tidy/functions/tidy-access-count.xml +++ b/reference/tidy/functions/tidy-access-count.xml @@ -1,6 +1,5 @@ - - + tidy_access_count @@ -12,7 +11,7 @@ Description inttidy_access_count - + resourcetidy &warn.undocumented.func; diff --git a/reference/tidy/functions/tidy-clean-repair.xml b/reference/tidy/functions/tidy-clean-repair.xml index 53a751520a..a5c48c38cb 100644 --- a/reference/tidy/functions/tidy-clean-repair.xml +++ b/reference/tidy/functions/tidy-clean-repair.xml @@ -1,6 +1,5 @@ - - + tidy_clean_repair @@ -12,11 +11,49 @@ Description booltidy_clean_repair - + resourcetidy + + This function cleans and repairs the given tidy + resource. + + + + <function>tidy_clean_repair</function> example + +test'; - &warn.undocumented.func; +$tidy = tidy_parse_string($html); +tidy_clean_repair($tidy); +echo $tidy; +?> +]]> + + + The above example will output: + + + + + + + + +

test

+ + +]]> +
+
+
+ + See also tidy_repair_file and + tidy_repair_string. +
diff --git a/reference/tidy/functions/tidy-config-count.xml b/reference/tidy/functions/tidy-config-count.xml index 9cd647f0b0..c1538c08e2 100644 --- a/reference/tidy/functions/tidy-config-count.xml +++ b/reference/tidy/functions/tidy-config-count.xml @@ -1,6 +1,5 @@ - - + tidy_config_count @@ -12,11 +11,30 @@ Description inttidy_config_count - + resourcetidy + + tidy_config_count returns the number of errors + encountered in the given configuration. + + + + <function>tidy_config_count</function> example + +test'; - &warn.undocumented.func; +$config = array('foo' => 'bar'); +$tidy = tidy_parse_string($html, $config); + +echo tidy_config_count($tidy); //1 +?> +]]> + + +