Beware of deprecated config options.
For example 'drop-font-tags' was deprecated and removed in newer versions of Tidy.
The URL provided for options reference is wrong, the proper API reference with a list of options per Tidy version is here: http://api.html-tidy.org/tidy::getConfig
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
tidy::getConfig
Референца за `tidy.getconfig.php` со подобрена типографија и навигација.
tidy::getConfig
tidy_get_config
(PHP 5, PHP 7, PHP 8, PECL tidy >= 0.7.0)
tidy::getConfig -- tidy_get_config — (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.7.0)
= NULL
Напиши целосна ознака на елемент
Процедурален стил
Добијте ја тековната Tidy конфигурација
tidy.
Вратени вредности
Ги добива списокот на опции за конфигурација што ги користи дадениот tidy
параметарот е даден, оваа функција исто така ќе ја прочита таа датотека и ќе го иницијализира објектот со датотеката, дејствувајќи како » http://api.html-tidy.org/#quick-reference.
Примери
Пример #1 Пример #1 Печати ги сите опции заедно со нивната документација и стандардна вредност example
<?php
$html = '<p>test</p>';
$config = array('indent' => TRUE,
'output-xhtml' => TRUE,
'wrap' => 200);
$tidy = tidy_parse_string($html, $config);
print_r($tidy->getConfig());
?>Пример #1 Пример што покажува затворачка ознака што го опфаќа последниот нов ред
Array
(
[indent-spaces] => 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
)
Види Исто така
- tidy_reset_config()
- tidy_save_config()