Home
last modified time | relevance | path

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

123

/php-src/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>');
16 var_dump(rtrim($tidy->value));
20 var_dump(tidy_get_root($tidy)->child[0]->isHtml());
21 var_dump(tidy_get_root($tidy)->child[0]->child[0]->isPHP());
26 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 Dopen_basedir_failure_config.phpt4 tidy
10 $tidy = new tidy;
11 $tidy->repairString('my epic string', 'my_config_file.ini');
21 $tidy = new tidy(__DIR__.'/open_basedir/test.html', 'my_config_file.ini');
27 $tidy = new tidy;
28 $tidy->parseFile(__DIR__.'/open_basedir/test.html', 'my_config_file.ini');
31 $tidy = new tidy;
32 $tidy->parseString('my epic string', 'my_config_file.ini');
37 Warning: tidy::repairString(): open_basedir restriction in effect. File(my_config_file.ini) is not …
45 tidy::__construct(): open_basedir restriction in effect. File(my_config_file.ini) is not within the…
[all …]
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 Dparsing_inexistent_file.phpt4 tidy
8 $tidy = new tidy;
9 var_dump($tidy->parseFile("does_not_exist.html"));
14 $tidy = new tidy("does_not_exist.html");
20 Warning: tidy::parseFile(): Cannot load "does_not_exist.html" into memory in %s on line %d
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 Dgh12980.phpt4 tidy
9 $tidy = new tidy();
10 $tidy->ParseString($html);
11 echo tidy_get_output($tidy), "\n";
13 var_dump($tidy->root()->child[1]->attribute);
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 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));
/php-src/ext/tidy/
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");
20 AC_DEFINE('HAVE_TIDY', 1, "Define to 1 if the PHP extension 'tidy' is available.");
21 AC_DEFINE('HAVE_TIDY_H', 1, "Define to 1 if you have the <tidy.h> header file.")
26 ADD_DEF_FILE("ext\\tidy\\php_tidy.def");
[all …]
H A Dtidy.stub.php818 function tidy_get_output(tidy $tidy): string {} argument
822 function tidy_clean_repair(tidy $tidy): bool {} argument
828 function tidy_diagnose(tidy $tidy): bool {} argument
836 function tidy_get_config(tidy $tidy): array {} argument
838 function tidy_get_status(tidy $tidy): int {} argument
840 function tidy_get_html_ver(tidy $tidy): int {} argument
842 function tidy_is_xhtml(tidy $tidy): bool {} argument
844 function tidy_is_xml(tidy $tidy): bool {} argument
846 function tidy_error_count(tidy $tidy): int {} argument
850 function tidy_access_count(tidy $tidy): int {} argument
[all …]
H A Dconfig.m41 PHP_ARG_WITH([tidy],
3 [AS_HELP_STRING([[--with-tidy[=DIR]]],
12 for j in tidy tidyp; do
31 dnl that we are building against tidy-html5 and not the legacy htmltidy. The
42 [Define to 1 if you have the <tidy.h> header file.])])
66 dnl tidy-html5 5.7.20: https://github.com/htacg/tidy-html5/issues/866
67 PHP_NEW_EXTENSION([tidy],
68 [tidy.c],
73 [Define to 1 if the PHP extension 'tidy' is available.])
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)

Completed in 22 milliseconds

123