From b45caca93ffb8a6522ca70dbb7e109a2e2acd487 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 4 Jul 2004 10:27:09 +0000 Subject: [PATCH] I've forgot this one git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162620 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/tidy/functions/tidy-construct.xml | 100 ++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100755 reference/tidy/functions/tidy-construct.xml diff --git a/reference/tidy/functions/tidy-construct.xml b/reference/tidy/functions/tidy-construct.xml new file mode 100755 index 0000000000..984382c215 --- /dev/null +++ b/reference/tidy/functions/tidy-construct.xml @@ -0,0 +1,100 @@ + + + + + tidy::__construct + + Constructs a new tidy object + + + + Description + + objecttidy::__construct + stringfilename + mixedconfig + stringencoding + booluse_include_path + + + tidy::__construct constructs a new tidy object. + + + If the filename parameter is given, this function + will also read that file and initializate the object with the file, + acting like tidy_parse_file. + + &tidy.conf-enc; + + + <function>tidy::__construct</function> example + + + + +title + +

paragraph +text

+ + +HTML; + +$tidy = new tidy; +$tidy->parseString($html); + +$tidy->CleanRepair(); + +if ($tidy->errorBuffer) { + echo "The following errors were detected:\n"; + echo $tidy->errorBuffer; +} + +?> +]]> +
+ + The above example will output: + + + is not recognized! +line 8 column 14 - Warning: discarding unexpected +]]> + +
+
+ + See also tidy_parse_file and + tidy_parse_string. + +
+
+ +