Home
last modified time | relevance | path

Searched refs:tidy (Results 1 – 25 of 61) sorted by relevance

123

/PHP-8.1/ext/tidy/
H A Dtidy.stub.php9 function tidy_get_output(tidy $tidy): string {} argument
13 function tidy_clean_repair(tidy $tidy): bool {} argument
19 function tidy_diagnose(tidy $tidy): bool {} argument
27 function tidy_get_config(tidy $tidy): array {} argument
29 function tidy_get_status(tidy $tidy): int {} argument
31 function tidy_get_html_ver(tidy $tidy): int {} argument
33 function tidy_is_xhtml(tidy $tidy): bool {} argument
35 function tidy_is_xml(tidy $tidy): bool {} argument
37 function tidy_error_count(tidy $tidy): int {} argument
41 function tidy_access_count(tidy $tidy): int {} argument
[all …]
H A Dconfig.w323 ARG_WITH("tidy", "TIDY support", "no");
7 if ((CHECK_LIB("libtidy_a.lib;tidy_a.lib", "tidy", PHP_TIDY) && (tidy_static = true) ||
8 CHECK_LIB("libtidy.lib;tidy.lib", "tidy", PHP_TIDY)) &&
10 CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") ||
11 CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) ||
12 CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true)
19 EXTENSION("tidy", "tidy.c");
21 AC_DEFINE('HAVE_TIDY_H', 1, "tidy include header")
23 AC_DEFINE('HAVE_TIDYRELEASEDATE', 1, "tidy release date function")
26 ADD_DEF_FILE("ext\\tidy\\php_tidy.def");
[all …]
H A Dtidy_arginfo.h11 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
15 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
26 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
49 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
55 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
59 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
77 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
82 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0)
213 ZEND_METHOD(tidy, __construct);
214 ZEND_METHOD(tidy, parseFile);
[all …]
H A Dphp_tidy.h26 ZEND_BEGIN_MODULE_GLOBALS(tidy)
29 ZEND_END_MODULE_GLOBALS(tidy)
31 #define TG(v) ZEND_MODULE_GLOBALS_ACCESSOR(tidy, v)
/PHP-8.1/ext/tidy/tests/
H A D023.phpt2 tidy and tidyNode OO
4 tidy
9 new tidy();
10 var_dump(new tidy());
14 $tidy = new tidy();
15 $tidy->parseString('<html><?php echo "xpto;" ?></html>');
17 var_dump(tidy_get_root($tidy)->child[0]->isHtml());
18 var_dump(tidy_get_root($tidy)->child[0]->child[0]->isPHP());
19 var_dump(tidy_get_root($tidy)->child[0]->child[0]->isAsp());
23 var_dump(tidy_get_root($tidy)->child[0]->hasChildren());
[all …]
H A Duninitialized.phpt2 Operations on uninitialized tidy object
4 tidy
8 $tidy = new tidy;
10 var_dump($tidy->getHtmlVer());
15 var_dump($tidy->isXhtml());
20 var_dump($tidy->isXml());
27 tidy object is not initialized
28 tidy object is not initialized
29 tidy object is not initialized
H A D025.phpt4 tidy
8 $tidy=tidy_parse_string('<% %>', array('newline' => 'LF'));
9 var_dump($tidy->Root()->child[0]->isAsp());
11 $tidy=tidy_parse_string('<# #>', array('newline' => 'LF'));
12 var_dump($tidy->Root()->child[0]->isJste());
14 $tidy=tidy_parse_string('<html><body>text</body></html>');
15 var_dump($tidy->Root()->child[0]->child[1]->child[0]->isText());
17 $tidy=tidy_parse_string('<html><body><!-- comment --></body></html>', array('newline' => 'LF'));
18 $n = $tidy->Root()->child[0]->child[1]->child[0];
24 var_dump($tidy->Root()->child[0]->child[0]->hasSiblings());
H A D020.phpt4 tidy
8 $tidy = new tidy();
14 $tidy->parseString($str, array('output-xhtml'=>1), 'latin1');
15 $tidy->cleanRepair();
16 $tidy->diagnose();
17 var_dump(tidy_warning_count($tidy) > 0);
18 var_dump(strlen($tidy->errorBuffer) > 50);
20 echo $tidy;
H A Dparsing_inexistent_file.phpt4 tidy
8 $tidy = new tidy;
9 var_dump($tidy->parseFile("does_not_exist.html"));
13 $tidy = new tidy("does_not_exist.html");
16 Warning: tidy::parseFile(): Cannot load "does_not_exist.html" into memory in %s on line %d
22 Warning: tidy::__construct(): Cannot load "does_not_exist.html" into memory in %s on line %d
H A Dtidy_error.phpt6 tidy
19 $tidy = tidy_parse_string($html);
21 echo tidy_get_status($tidy);
25 $tidy = tidy_parse_string($html);
27 echo tidy_get_status($tidy);
31 $tidy = tidy_parse_string($html);
33 echo tidy_get_status($tidy);
H A D013.phpt4 tidy
7 $tidy = new tidy(__DIR__."/013.html", array("show-body-only"=>true));
8 $tidy->cleanRepair();
9 echo $tidy;
H A Dbug77040.phpt4 tidy
7 $tidy = new tidy;
8 $tidy->parseString("<p>text</p><p><![CDATA[cdata]]></p>");
9 $p = $tidy->body()->child[0];
15 $cdata = $tidy->body()->child[1]->child[0];
H A D001.phpt2 Check for tidy presence
4 tidy
7 echo "tidy extension is available";
10 tidy extension is available
H A Dtidy_error1.phpt6 tidy
12 $tidy = new tidy();
13 var_dump($tidy->parseString($buffer, $config));
17 Warning: tidy::parseString(): Unknown Tidy configuration option "bogus" in %s on line %d
H A D007.phpt4 tidy
6 tidy.default_config=
9 $a = new tidy(__DIR__."/007.html");
10 echo "Current Value of 'tidy-mark': ";
11 var_dump($a->getopt("tidy-mark"));
31 Current Value of 'tidy-mark': bool(false)
34 tidy::getOpt(): Argument #1 ($option) is an invalid configuration option, "bogus-opt" given
H A D027.phpt2 Bug: tidy segfaults with markup=false
4 tidy
31 $tidy = new tidy;
32 $tidy->parseString($data, self::$tidyconfig, 'utf8');
33 $tidy->cleanRepair();
35 return $tidy;
H A D030.phpt6 tidy
14 $tidy = new tidy();
15 $tidy->parseString($buffer, $config);
16 $c = $tidy->getConfig();
H A D015.phpt4 tidy
7 $tidy = tidy_parse_file(__DIR__."/015.html", array('show-body-only'=>true));
8 tidy_clean_repair($tidy);
9 echo tidy_get_output($tidy);
H A D014.phpt4 tidy
8 $tidy = tidy_parse_string($text, array('show-body-only'=>true));
9 tidy_clean_repair($tidy);
10 echo tidy_get_output($tidy);
H A D034.phpt6 tidy
13 $tidy = tidy_parse_string($buffer, $config);
14 $tidy->diagnose();
15 var_dump(tidy_access_count($tidy));
H A D016.phpt4 tidy
7 $tidy = tidy_parse_file(__DIR__."/016.html",
9 $cfg = $tidy->getConfig();
H A Dparsing_file_too_large.phpt4 tidy
31 $tidy = new tidy;
33 var_dump($tidy->parseFile($path));
45 $tidy = new tidy($path);
H A D032.phpt6 tidy
11 $tidy = tidy_parse_string($buffer);
12 var_dump(tidy_error_count($tidy));
H A D033.phpt6 tidy
11 $tidy = tidy_parse_string($buffer);
12 var_dump(tidy_warning_count($tidy));
H A D031.phpt6 tidy
12 $tidy = tidy_parse_string($buffer, $config);
13 var_dump(tidy_config_count($tidy));

Completed in 23 milliseconds

123