diff --git a/reference/tidy/functions/ob-tidyhandler.xml b/reference/tidy/functions/ob-tidyhandler.xml index b788750467..49ed5c2a9f 100755 --- a/reference/tidy/functions/ob-tidyhandler.xml +++ b/reference/tidy/functions/ob-tidyhandler.xml @@ -1,5 +1,5 @@ - + ob_tidyhandler @@ -13,8 +13,7 @@ intmode - ob_tidyhandler is intended to be used as a - callback function for ob_start to repair the buffer. + Callback function for ob_start to repair the buffer. diff --git a/reference/tidy/functions/tidy-clean-repair.xml b/reference/tidy/functions/tidy-clean-repair.xml deleted file mode 100644 index ddead6e4e3..0000000000 --- a/reference/tidy/functions/tidy-clean-repair.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - tidy_clean_repair - Execute configured cleanup and repair operations on parsed markup - - - &reftitle.description; - Procedural style: - - booltidy_clean_repair - tidyobject - - Object oriented style: - - booltidy->cleanRepair - - - - This function cleans and repairs the given tidy - object. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - - &reftitle.examples; - - - <function>tidy_clean_repair</function> example - -test'; - -$tidy = tidy_parse_string($html); -tidy_clean_repair($tidy); - -echo $tidy; -?> -]]> - - &example.outputs; - - - - - - - -

test

- - -]]> -
-
-
-
- - - &reftitle.seealso; - - tidy_repair_file - tidy_repair_string - - -
- - diff --git a/reference/tidy/functions/tidy-construct.xml b/reference/tidy/functions/tidy-construct.xml deleted file mode 100755 index e0cc0cf63e..0000000000 --- a/reference/tidy/functions/tidy-construct.xml +++ /dev/null @@ -1,162 +0,0 @@ - - - - - tidy::__construct - Constructs a new tidy object - - - &reftitle.description; - - tidytidy::__construct - stringfilename - mixedconfig - stringencoding - booluse_include_path - - - tidy::__construct constructs a new - tidy object. - - - - - &reftitle.parameters; - - - - filename - - - If the filename parameter is given, this function - will also read that file and initialize the object with the file, - acting like tidy_parse_file. - - - - - config - - - The config config can be passed either as an - array or as a string. If a string is passed, it is interpreted as the - name of the configuration file, otherwise, it is interpreted as the - options themselves. - - - For an explanation about each option, visit &url.tidy.conf;. - - - - - encoding - - - The encoding parameter sets the encoding for - input/output documents. The possible values for encoding are: - ascii, latin0, latin1, - raw, utf8, iso2022, - mac, win1252, ibm858, - utf16, utf16le, utf16be, - big5, and shiftjis. - - - - - use_include_path - - - Search for the file in the include_path. - - - - - - - - - &reftitle.returnvalues; - - Returns the new tidy instance. - - - - - &reftitle.examples; - - - <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; -} - -?> -]]> -
- &example.outputs; - - is not recognized! -line 8 column 14 - Warning: discarding unexpected -]]> - -
-
-
- - - &reftitle.seealso; - - tidy_parse_file - tidy_parse_string - - - -
- - diff --git a/reference/tidy/functions/tidy-diagnose.xml b/reference/tidy/functions/tidy-diagnose.xml deleted file mode 100644 index d888caf0cf..0000000000 --- a/reference/tidy/functions/tidy-diagnose.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - tidy_diagnose - Run configured diagnostics on parsed and repaired markup - - - &reftitle.description; - Procedural style: - - booltidy_diagnose - tidyobject - - Object oriented style: - - booltidy->diagnose - - - - Runs diagnostic tests on the given tidy object, - adding some more information about the document in the error buffer. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - - &reftitle.examples; - - - <function>tidy_diagnose</function> example - - - -

paragraph

-HTML; - -$tidy = tidy_parse_string($html); -$tidy->CleanRepair(); - -// note the difference between the two outputs -echo tidy_get_error_buffer($tidy) . "\n"; - -$tidy->diagnose(); -echo tidy_get_error_buffer($tidy); - -?> -]]> -
- &example.outputs; - - isn't allowed in elements -line 5 column 1 - Warning: inserting missing 'title' element - -line 5 column 1 - Warning:

isn't allowed in elements -line 5 column 1 - Warning: inserting missing 'title' element -Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN" -Info: Document content looks like XHTML 1.0 Strict -2 warnings, 0 errors were found! -]]> - - - - - - - &reftitle.seealso; - - tidy_get_error_buffer - - - - - - diff --git a/reference/tidy/functions/tidy-get-body.xml b/reference/tidy/functions/tidy-get-body.xml deleted file mode 100644 index b2b339303e..0000000000 --- a/reference/tidy/functions/tidy-get-body.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - - tidy_get_body - Returns a tidyNode Object starting from the <body> tag of the tidy parse tree - - - &reftitle.description; - Procedural style: - - tidyNodetidy_get_body - tidyobject - - Object oriented style: - - tidyNodetidy->body - - - - This function returns a tidyNode object starting from the <body> - tag of the tidy parse tree. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - Returns the detected HTML version. - - - - This function is not yet implemented in the Tidylib itself, so it always - return 0. - - - - - - &reftitle.examples; - - - <function>tidy_get_body</function> example - - - - test - - -

paragraph

- -'; - -$tidy = tidy_parse_string($html); - -$body = tidy_get_body($tidy); -echo $body->value; -?> -]]> - - &example.outputs; - - -

paragraph

- -]]> -
-
-
-
- - - &reftitle.notes; - ¬e.tidy.ze2; - - - - &reftitle.seealso; - - tidy_get_head - tidy_get_html - - - -
- - diff --git a/reference/tidy/functions/tidy-get-config.xml b/reference/tidy/functions/tidy-get-config.xml deleted file mode 100644 index 7c216e5cd5..0000000000 --- a/reference/tidy/functions/tidy-get-config.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - tidy_get_config - Get current Tidy configuration - - - &reftitle.description; - Procedural style: - - arraytidy_get_config - tidyobject - - Object oriented style: - - arraytidy->getConfig - - - - Gets the list of the configuration options in use by the given tidy - object. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - Returns an array of configuration options. - - - For an explanation about each option, visit &url.tidy.conf;. - - - - - &reftitle.examples; - - - <function>tidy_get_config</function> example - -test

'; -$config = array('indent' => TRUE, - 'output-xhtml' => TRUE, - 'wrap' => 200); - -$tidy = tidy_parse_string($html, $config); - -print_r(tidy_get_config($tidy)); -?> -]]> -
- &example.outputs; - - 2 - [wrap] => 200 - [tab-size] => 8 - [char-encoding] => 1 - [input-encoding] => 3 - [output-encoding] => 1 - [newline] => 1 - [doctype-mode] => 1 - [doctype] => - [repeated-attributes] => 1 - [alt-text] => - [slide-style] => - [error-file] => - [output-file] => - [write-back] => - [markup] => 1 - [show-warnings] => 1 - [quiet] => - [indent] => 1 - [hide-endtags] => - [input-xml] => - [output-xml] => 1 - [output-xhtml] => 1 - [output-html] => - [add-xml-decl] => - [uppercase-tags] => - [uppercase-attributes] => - [bare] => - [clean] => - [logical-emphasis] => - [drop-proprietary-attributes] => - [drop-font-tags] => - [drop-empty-paras] => 1 - [fix-bad-comments] => 1 - [break-before-br] => - [split] => - [numeric-entities] => - [quote-marks] => - [quote-nbsp] => 1 - [quote-ampersand] => 1 - [wrap-attributes] => - [wrap-script-literals] => - [wrap-sections] => 1 - [wrap-asp] => 1 - [wrap-jste] => 1 - [wrap-php] => 1 - [fix-backslash] => 1 - [indent-attributes] => - [assume-xml-procins] => - [add-xml-space] => - [enclose-text] => - [enclose-block-text] => - [keep-time] => - [word-2000] => - [tidy-mark] => - [gnu-emacs] => - [gnu-emacs-file] => - [literal-attributes] => - [show-body-only] => - [fix-uri] => 1 - [lower-literals] => 1 - [hide-comments] => - [indent-cdata] => - [force-output] => 1 - [show-errors] => 6 - [ascii-chars] => 1 - [join-classes] => - [join-styles] => 1 - [escape-cdata] => - [language] => - [ncr] => 1 - [output-bom] => 2 - [replace-color] => - [css-prefix] => - [new-inline-tags] => - [new-blocklevel-tags] => - [new-empty-tags] => - [new-pre-tags] => - [accessibility-check] => 0 - [vertical-space] => - [punctuation-wrap] => - [merge-divs] => 1 -) -]]> - -
-
-
- - - &reftitle.seealso; - - tidy_reset_config - tidy_save_config - - - -
- - diff --git a/reference/tidy/functions/tidy-get-error-buffer.xml b/reference/tidy/functions/tidy-get-error-buffer.xml index aab360b02b..131e6d39bf 100644 --- a/reference/tidy/functions/tidy-get-error-buffer.xml +++ b/reference/tidy/functions/tidy-get-error-buffer.xml @@ -1,5 +1,5 @@ - + tidy_get_error_buffer @@ -18,8 +18,7 @@ stringerrorBuffer - tidy_get_error_buffer returns warnings and errors - which occurred parsing the specified document. + Returns warnings and errors which occurred parsing the specified document.
diff --git a/reference/tidy/functions/tidy-get-head.xml b/reference/tidy/functions/tidy-get-head.xml deleted file mode 100644 index 7854541d2a..0000000000 --- a/reference/tidy/functions/tidy-get-head.xml +++ /dev/null @@ -1,120 +0,0 @@ - - - - - tidy_get_head - Returns a tidyNode Object starting from the <head> tag of the tidy parse tree - - - &reftitle.description; - Procedural style: - - tidyNodetidy_get_head - tidyobject - - Object oriented style: - - tidyNodetidy->head - - - - This function returns a tidyNode object starting from the <head> - tag of the tidy parse tree. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - Returns the tidyNode object. - - - - - &reftitle.examples; - - - <function>tidy_get_head</function> example - - - - test - - -

paragraph

- -'; - -$tidy = tidy_parse_string($html); - -$head = tidy_get_head($tidy); -echo $head->value; -?> -]]> -
- &example.outputs; - - -test - -]]> - -
-
-
- - - &reftitle.notes; - ¬e.tidy.ze2; - - - - &reftitle.seealso; - - tidy_get_body - tidy_get_html - - - -
- - diff --git a/reference/tidy/functions/tidy-get-html-ver.xml b/reference/tidy/functions/tidy-get-html-ver.xml deleted file mode 100644 index 5782babc71..0000000000 --- a/reference/tidy/functions/tidy-get-html-ver.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - tidy_get_html_ver - Get the Detected HTML version for the specified document - - - &reftitle.description; - Procedural style: - - inttidy_get_html_ver - tidyobject - - Object oriented style: - - inttidy->getHtmlVer - - - - Returns the detected HTML version for the specified tidy - object. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - Returns the detected HTML version. - - - - This function is not yet implemented in the Tidylib itself, so it always - return 0. - - - - - - - diff --git a/reference/tidy/functions/tidy-get-html.xml b/reference/tidy/functions/tidy-get-html.xml deleted file mode 100644 index c234b805d9..0000000000 --- a/reference/tidy/functions/tidy-get-html.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - tidy_get_html - Returns a tidyNode Object starting from the <html> tag of the tidy parse tree - - - &reftitle.description; - Procedural style: - - tidyNodetidy_get_html - tidyobject - - Object oriented style: - - tidyNodetidy->html - - - - This function returns a tidyNode object starting from the <html> - tag of the tidy parse tree. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - Returns the tidyNode object. - - - - - &reftitle.examples; - - - <function>tidy_get_html</function> example - - - - test - - -

paragraph

- -'; - -$tidy = tidy_parse_string($html); - -$html = tidy_get_html($tidy); -echo $html->value; -?> -]]> -
- &example.outputs; - - - -test - - -

paragraph

- - -]]> -
-
-
-
- - - &reftitle.notes; - ¬e.tidy.ze2; - - - - &reftitle.seealso; - - tidy_get_body - tidy_get_head - - -
- - diff --git a/reference/tidy/functions/tidy-get-opt-doc.xml b/reference/tidy/functions/tidy-get-opt-doc.xml deleted file mode 100755 index 0c700ab0c0..0000000000 --- a/reference/tidy/functions/tidy-get-opt-doc.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - tidy_get_opt_doc - - Returns the documentation for the given option name - - - - &reftitle.description; - Procedural style: - - stringtidy_get_opt_doc - tidyobject - stringoptname - - Object oriented style: - - stringtidy->getOptDoc - stringoptname - - - tidy_get_opt_doc returns the documentation for the - given option name. - - - - You need at least libtidy from 25 April, 2005 for this function be - available. - - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - optname - - - The option name - - - - - - - - - &reftitle.returnvalues; - - Returns a string if the option exists and has documentation available, or - &false; otherwise. - - - - - &reftitle.examples; - - - Print all options along with their documentation and default value - -getConfig(); - -ksort($config); - -foreach ($config as $opt => $val) { - - if (!$doc = $tidy->getOptDoc($opt)) - $doc = 'no documentation available!'; - - $val = ($tidy->getOpt($opt) === true) ? 'true' : $val; - $val = ($tidy->getOpt($opt) === false) ? 'false' : $val; - - echo "

$opt (default: '$val')
". - "$doc


\n"; -} - -?> -]]> -
-
-
-
- - - &reftitle.seealso; - - - tidy_get_config - tidy_getopt - - - -
- - diff --git a/reference/tidy/functions/tidy-get-release.xml b/reference/tidy/functions/tidy-get-release.xml deleted file mode 100644 index ac5325a2e2..0000000000 --- a/reference/tidy/functions/tidy-get-release.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - tidy_get_release - Get release date (version) for Tidy library - - - &reftitle.description; - Procedural style: - - stringtidy_get_release - - - Object oriented style: - - stringtidy->getRelease - - - - Gets the release date of the Tidy library. - - - - &reftitle.returnvalues; - - Returns a string with the release date of the Tidy library. - - - - - diff --git a/reference/tidy/functions/tidy-get-root.xml b/reference/tidy/functions/tidy-get-root.xml deleted file mode 100644 index 771a8f857a..0000000000 --- a/reference/tidy/functions/tidy-get-root.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - tidy_get_root - Returns a tidyNode object representing the root of the tidy parse tree - - - &reftitle.description; - Procedural style: - - tidyNodetidy_get_root - tidyobject - - Object oriented style: - - tidyNodetidy->root - - - - Returns a tidyNode object representing the root of the tidy parse tree. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - Returns the tidyNode object. - - - - - &reftitle.examples; - - - dump nodes - - - -

paragraph

-
- - -HTML; - -$tidy = tidy_parse_string($html); -dump_nodes($tidy->root(), 1); - - -function dump_nodes($node, $indent) { - - if($node->hasChildren()) { - foreach($node->child as $child) { - echo str_repeat('.', $indent*2) . ($child->name ? $child->name : '"'.$child->value.'"'). "\n"; - - dump_nodes($child, $indent+1); - } - } -} -?> -]]> -
- &example.outputs; - - - -
-
-
- - - &reftitle.notes; - ¬e.tidy.ze2; - -
- - diff --git a/reference/tidy/functions/tidy-get-status.xml b/reference/tidy/functions/tidy-get-status.xml deleted file mode 100644 index 161bf884a2..0000000000 --- a/reference/tidy/functions/tidy-get-status.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - tidy_get_status - Get status of specified document - - - &reftitle.description; - Procedural style: - - inttidy_get_status - tidyobject - - Object oriented style: - - inttidy->getStatus - - - - Returns the status for the specified tidy object. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - Returns 0 if no error/warning was raised, 1 for warnings or accessibility - errors, or 2 for errors. - - - - - &reftitle.examples; - - - <function>tidy_get_status</function> example - -paragraph'; -$tidy = tidy_parse_string($html); - -$html2 = 'test'; -$tidy2 = tidy_parse_string($html2); - -echo tidy_get_status($tidy); //1 - -echo tidy_get_status($tidy2); //2 -?> -]]> - - - - - - - diff --git a/reference/tidy/functions/tidy-getopt.xml b/reference/tidy/functions/tidy-getopt.xml deleted file mode 100644 index ac1a99a3e9..0000000000 --- a/reference/tidy/functions/tidy-getopt.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - tidy_getopt - Returns the value of the specified configuration option for the tidy document - - - &reftitle.description; - Procedural style: - - mixedtidy_getopt - tidyobject - stringoption - - Object oriented style: - - mixedtidy->getOpt - stringoption - - - Returns the value of the specified option for the - specified tidy object. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - option - - - You will find a list with each configuration option and their types - at: &url.tidy.conf;. - - - - - - - - - &reftitle.returnvalues; - - Returns the value of the specified option. - The return type depends on the type of the specified one. - - - - - &reftitle.examples; - - - <function>tidy_getopt</function> example - - -Title - - -

- -'; - -$config = array('accessibility-check' => 3, - 'alt-text' => 'some text'); - -$tidy = new tidy(); -$tidy->parseString($html, $config); - - -var_dump($tidy->getOpt('accessibility-check')); //integer -var_dump($tidy->getOpt('lower-literals')); //boolean -var_dump($tidy->getOpt('alt-text')); //string - -?> -]]> -
- &example.outputs; - - - -
-
-
-
- - diff --git a/reference/tidy/functions/tidy-is-xhtml.xml b/reference/tidy/functions/tidy-is-xhtml.xml deleted file mode 100644 index 49e94068d3..0000000000 --- a/reference/tidy/functions/tidy-is-xhtml.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - tidy_is_xhtml - Indicates if the document is a XHTML document - - - &reftitle.description; - Procedural style: - - booltidy_is_xhtml - tidyobject - - Object oriented style: - - booltidy->isXhtml - - - - Tells if the document is a XHTML document. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - This function returns &true; if the specified tidy - object is a XHTML document, or &false; otherwise. - - - - This function is not yet implemented in the Tidylib itself, so it always - return &false;. - - - - - - - diff --git a/reference/tidy/functions/tidy-is-xml.xml b/reference/tidy/functions/tidy-is-xml.xml deleted file mode 100755 index 6d81756226..0000000000 --- a/reference/tidy/functions/tidy-is-xml.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - tidy_is_xml - Indicates if the document is a generic (non HTML/XHTML) XML document - - - &reftitle.description; - Procedural style: - - booltidy_is_xml - tidyobject - - Object oriented style: - - booltidy->isXml - - - - Tells if the document is a generic (non HTML/XHTML) XML document. - - - - - &reftitle.parameters; - - - - object - - - &tidy.object; - - - - - - - - - &reftitle.returnvalues; - - This function returns &true; if the specified tidy - object is a generic XML document (non HTML/XHTML), - or &false; otherwise. - - - - This function is not yet implemented in the Tidylib itself, so it always - return &false;. - - - - - - - diff --git a/reference/tidy/functions/tidy-load-config.xml b/reference/tidy/functions/tidy-load-config.xml index 6f4c5096d3..8800498764 100644 --- a/reference/tidy/functions/tidy-load-config.xml +++ b/reference/tidy/functions/tidy-load-config.xml @@ -1,5 +1,5 @@ - + tidy_load_config @@ -13,7 +13,7 @@ stringencoding - This function loads a Tidy configuration file, with the specified + Loads a Tidy configuration file, with the specified encoding. diff --git a/reference/tidy/functions/tidy-parse-file.xml b/reference/tidy/functions/tidy-parse-file.xml deleted file mode 100644 index baf5eba764..0000000000 --- a/reference/tidy/functions/tidy-parse-file.xml +++ /dev/null @@ -1,151 +0,0 @@ - - - - - tidy_parse_file - Parse markup in file or URI - - - &reftitle.description; - Procedural style: - - tidytidy_parse_file - stringfilename - mixedconfig - stringencoding - booluse_include_pathfalse - - Object oriented style: - - booltidy->parseFile - stringfilename - mixedconfig - stringencoding - booluse_include_pathfalse - - - This function parses the given file. - - - - - &reftitle.parameters; - - - - filename - - - If the filename parameter is given, this function - will also read that file and initialize the object with the file, - acting like tidy_parse_file. - - - - - config - - - The config config can be passed either as an - array or as a string. If a string is passed, it is interpreted as the - name of the configuration file, otherwise, it is interpreted as the - options themselves. - - - Pour une explication sur chaque option, voyez - &url.tidy.conf;. - - - - - encoding - - - Le paramètre encoding configure l'encodage - pour les documents d'entrée et de sortie. Les valeurs possibles sont - ascii, latin0, latin1, - raw, utf8, iso2022, - mac, win1252, ibm858, - utf16, utf16le, utf16be, - big5 et shiftjis. - - - - - use_include_path - - - Search for the file in the include_path. - - - - - - - - - &reftitle.returnvalues; - - &return.success; - - - - - &reftitle.examples; - - - <function>tidy_parse_file</function> example - -cleanRepair(); - -if(!empty($tidy->errorBuffer)) { - echo "The following errors or warnings occured:\n"; - echo $tidy->errorBuffer; -} -?> -]]> - - - - - - - &reftitle.notes; - ¬e.tidy.2only; - - - - &reftitle.seealso; - - tidy_parse_string - tidy_repair_file - tidy_repair_string - - - - - - diff --git a/reference/tidy/functions/tidy-parse-string.xml b/reference/tidy/functions/tidy-parse-string.xml deleted file mode 100644 index 2cabb74d1f..0000000000 --- a/reference/tidy/functions/tidy-parse-string.xml +++ /dev/null @@ -1,174 +0,0 @@ - - - - - tidy_parse_string - Parse a document stored in a string - - - &reftitle.description; - Procedural style: - - tidytidy_parse_string - stringinput - mixedconfig - stringencoding - - Object oriented style: - - booltidy->parseString - stringinput - mixedconfig - stringencoding - - - Parses a document stored in a string. - - - - - &reftitle.parameters; - - - - input - - - The data to be parsed. - - - - - config - - - The config config can be passed either as an - array or as a string. If a string is passed, it is interpreted as the - name of the configuration file, otherwise, it is interpreted as the - options themselves. - - - For an explanation about each option, visit &url.tidy.conf;. - - - - - encoding - - - The encoding parameter sets the encoding for - input/output documents. The possible values for encoding are: - ascii, latin0, latin1, - raw, utf8, iso2022, - mac, win1252, ibm858, - utf16, utf16le, utf16be, - big5, and shiftjis. - - - - - - - - - &reftitle.returnvalues; - - Returns a new tidy instance. - - - - - &reftitle.examples; - - - <function>tidy_parse_string</function> example - - - - - - test - - -

error
another line - - - - TRUE, - 'output-xhtml' => TRUE, - 'wrap' => 200); - -$tidy = tidy_parse_string($buffer, $config, 'UTF8'); - -$tidy->cleanRepair(); -echo $tidy; -?> -]]> - - &example.outputs; - - - - - - test - - - -

- error
- another line -

- - -]]> - -
-
-
- - - &reftitle.notes; - ¬e.tidy.2only; - - - - &reftitle.seealso; - - tidy_parse_file - tidy_repair_file - tidy_repair_string - - - -
- - diff --git a/reference/tidy/functions/tidy-repair-file.xml b/reference/tidy/functions/tidy-repair-file.xml deleted file mode 100644 index 995abc5018..0000000000 --- a/reference/tidy/functions/tidy-repair-file.xml +++ /dev/null @@ -1,135 +0,0 @@ - - - - - tidy_repair_file - Repair a file and return it as a string - - - &reftitle.description; - - stringtidy_repair_file - stringfilename - mixedconfig - stringencoding - booluse_include_pathfalse - - - Repairs the given file and returns it as a string. - - - - - &reftitle.parameters; - - - - filename - - - The file to be repaired. - - - - - config - - - The config config can be passed either as an - array or as a string. If a string is passed, it is interpreted as the - name of the configuration file, otherwise, it is interpreted as the - options themselves. - - - Check http://tidy.sourceforge.net/docs/quickref.html for an - explanation about each option. - - - - - encoding - - - The encoding parameter sets the encoding for - input/output documents. The possible values for encoding are: ascii, - latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, - utf16le, utf16be, big5 and shiftjis. - - - - - use_include_path - - - Search for the file in the include_path. - - - - - - - - - &reftitle.returnvalues; - - Returns the repaired contents as a string. - - - - - &reftitle.examples; - - - <function>tidy_repair_file</function> example - - -]]> - - - - - - - &reftitle.notes; - ¬e.tidy.2only; - - - - &reftitle.seealso; - - tidy_parse_file - tidy_parse_string - tidy_repair_string - - - - - - diff --git a/reference/tidy/functions/tidy-repair-string.xml b/reference/tidy/functions/tidy-repair-string.xml deleted file mode 100644 index 0cceebeecc..0000000000 --- a/reference/tidy/functions/tidy-repair-string.xml +++ /dev/null @@ -1,151 +0,0 @@ - - - - - tidy_repair_string - Repair a string using an optionally provided configuration file - - - &reftitle.description; - - stringtidy_repair_string - stringdata - mixedconfig - stringencoding - - - This function repairs the given string. - - - - - &reftitle.parameters; - - - - data - - - The data to be repaired. - - - - - config - - - The config config can be passed either as an - array or as a string. If a string is passed, it is interpreted as the - name of the configuration file, otherwise, it is interpreted as the - options themselves. - - - Check http://tidy.sourceforge.net/docs/quickref.html for an - explanation about each option. - - - - - encoding - - - The encoding parameter sets the encoding for - input/output documents. The possible values for encoding are: ascii, - latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, - utf16le, utf16be, big5 and shiftjis. - - - - - - - - - &reftitle.returnvalues; - - Returns the repaired string. - - - - - &reftitle.examples; - - - <function>tidy_repair_string</function> example - - - - - - test - - -

error - - - - -]]> - - &example.outputs; - - - - -test - - -

error

- - -]]> - -
-
-
- - - &reftitle.notes; - ¬e.tidy.2only; - - - - &reftitle.seealso; - - tidy_parse_file - tidy_parse_string - tidy_repair_file - - -
- - diff --git a/reference/tidy/functions/tidy-warning-count.xml b/reference/tidy/functions/tidy-warning-count.xml index 99f0d06ca4..a7c17e97b9 100644 --- a/reference/tidy/functions/tidy-warning-count.xml +++ b/reference/tidy/functions/tidy-warning-count.xml @@ -1,5 +1,5 @@ - + tidy_warning_count @@ -12,8 +12,7 @@ tidyobject - tidy_warning_count returns the number of Tidy warnings - encountered for the specified document. + Returns the number of Tidy warnings encountered for the specified document.