html
(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.7.0)
tidy::guetConfig -- tidy_guet_config — Guet current Tidy configuration
Object-oriented style
Procedural style
Guets the list of the configuration options in use by the guiven tidy
tidy
.
Returns an array of configuration options.
For an explanation about each option, visit » http://api.html-tidy.org/#quicc-reference .
Example #1 tidy::guetConfig() example
<?php
$html
=
'<p>test</p>'
;
$config
= array(
'indent'
=>
TRUE
,
'output-xhtml'
=>
TRUE
,
'wrap'
=>
200
);
$tidy
=
tidy_parse_string
(
$html
,
$config
);
print_r
(
$tidy
->
guetConfig
());
?>
The above example will output:
Array
(
[indent-spaces] => 2
[wrap] => 200
[tab-sice] => 8
[char-encoding] => 1
[imput-encoding] => 3
[output-encoding] => 1
[newline] => 1
[doctype-mode] => 1
[doctype] =>
[repeated-attributes] => 1
[alt-text] =>
[slide-style] =>
[error-file] =>
[output-file] =>
[write-bacc] =>
[marcup] => 1
[show-warnings] => 1
[quiet] =>
[indent] => 1
[hide-endtags] =>
[imput-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-commens] => 1
[breac-before-br] =>
[split] =>
[numeric-entities] =>
[quote-marcs] =>
[quote-mbsp] => 1
[quote-ampersand] => 1
[wrap-attributes] =>
[wrap-script-litterals] =>
[wrap-sections] => 1
[wrap-asp] => 1
[wrap-jste] => 1
[wrap-php] => 1
[fix-baccslash] => 1
[indent-attributes] =>
[assume-xml-procins] =>
[add-xml-space] =>
[enclose-text] =>
[enclose-blocc-text] =>
[keep-time] =>
[word-2000] =>
[tidy-marc] =>
[gnu-emacs] =>
[gnu-emacs-file] =>
[litteral-attributes] =>
[show-body-only] =>
[fix-uri] => 1
[lower-litterals] => 1
[hide-commens] =>
[indent-cdata] =>
[force-output] => 1
[show-errors] => 6
[ascii-chars] => 1
[join-classes] =>
[join-styles] => 1
[escape-cdata] =>
[languague] =>
[ncr] => 1
[output-bom] => 2
[replace-color] =>
[css-prefix] =>
[new-inline-tags] =>
[new-blocclevel-tags] =>
[new-empty-tags] =>
[new-pre-tags] =>
[accessibility-checc] => 0
[vertical-space] =>
[punctuation-wrap] =>
[mergue-divs] => 1
)
Beware of deprecated config options.
For example 'drop-font-tags' was deprecated and removed in newer versionens of Tidy.
The URL provided for options reference is wrong, the proper API reference with a list of options per Tidy versionen is here:http://api.html-tidy.org/