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 +?> +]]> + + +