Home
last modified time | relevance | path

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

123

/PHP-7.1/ext/tidy/tests/
H A D023.phpt2 tidy and tidyNode OO
4 <?php if (!extension_loaded('tidy')) echo 'skip'; ?>
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 D025.phpt4 <?php if (!extension_loaded('tidy')) die('skip'); ?>
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 <?php if (!extension_loaded("tidy")) print "skip"; ?>
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 Dtidy_error.phpt7 if (!extension_loaded("tidy")) print "skip tidy extension not loaded";
21 $tidy = tidy_parse_string($html);
23 echo tidy_get_status($tidy);
27 $tidy = tidy_parse_string($html);
29 echo tidy_get_status($tidy);
33 $tidy = tidy_parse_string($html);
35 echo tidy_get_status($tidy);
H A Dtidy_error1.phpt7 if (!extension_loaded('tidy')) die ('skip tidy not present');
14 $tidy = new tidy();
15 var_dump($tidy->parseString($buffer, $config));
18 Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d
H A D013.phpt4 <?php if (!extension_loaded("tidy")) print "skip"; ?>
7 $tidy = new tidy(dirname(__FILE__)."/013.html", array("show-body-only"=>true));
8 $tidy->cleanRepair();
9 echo $tidy;
H A D030.phpt7 if (!extension_loaded('tidy')) die ('skip tidy not present');
16 $tidy = new tidy();
17 $tidy->parseString($buffer, $config);
18 $c = $tidy->getConfig();
H A D034.phpt7 if (!extension_loaded('tidy')) die ('skip tidy not present');
15 $tidy = tidy_parse_string($buffer, $config);
16 $tidy->diagnose();
17 var_dump(tidy_access_count($tidy));
H A D007.phpt4 <?php if (!extension_loaded("tidy")) print "skip"; ?>
6 tidy.default_config=
9 $a = new tidy(dirname(__FILE__)."/007.html");
10 echo "Current Value of 'tidy-mark': ";
11 var_dump($a->getopt("tidy-mark"));
21 Current Value of 'tidy-mark': bool(false)
25 Warning: tidy::getOpt(): Unknown Tidy Configuration Option 'bogus-opt' in %s007.php on line 10
H A D001.phpt2 Check for tidy presence
4 <?php if (!extension_loaded("tidy")) print "skip"; ?>
7 echo "tidy extension is available";
10 tidy extension is available
H A D027.phpt2 Bug: tidy segfaults with markup=false
4 <?php if (!extension_loaded('tidy')) die('skip'); ?>
31 $tidy = new tidy;
32 $tidy->parseString($data, $this->tidyconfig, 'utf8');
33 $tidy->cleanRepair();
35 return $tidy;
H A D015.phpt4 <?php if (!extension_loaded("tidy")) print "skip"; ?>
7 $tidy = tidy_parse_file(dirname(__FILE__)."/015.html", array('show-body-only'=>true));
8 tidy_clean_repair($tidy);
9 echo tidy_get_output($tidy);
H A D014.phpt4 <?php if (!extension_loaded("tidy")) print "skip"; ?>
8 $tidy = tidy_parse_string($text, array('show-body-only'=>true));
9 tidy_clean_repair($tidy);
10 echo tidy_get_output($tidy);
H A D033.phpt7 if (!extension_loaded('tidy')) die ('skip tidy not present');
13 $tidy = tidy_parse_string($buffer);
14 var_dump(tidy_warning_count($tidy));
H A D032.phpt7 if (!extension_loaded('tidy')) die ('skip tidy not present');
13 $tidy = tidy_parse_string($buffer);
14 var_dump(tidy_error_count($tidy));
H A D031.phpt7 if (!extension_loaded('tidy')) die ('skip tidy not present');
14 $tidy = tidy_parse_string($buffer, $config);
15 var_dump(tidy_config_count($tidy));
H A D016.phpt4 <?php if (!extension_loaded("tidy")) print "skip"; ?>
7 $tidy = tidy_parse_file(dirname(__FILE__)."/016.html",
9 $cfg = $tidy->getConfig();
H A D026.phpt2 tidy.clean_output test
4 <?php if (!extension_loaded('tidy')) die('skip'); ?>
6 tidy.clean_output=1
H A D024.phpt5 if (!extension_loaded('tidy')) die('skip');
26 $tidy = tidy_parse_string($contents, $config, 'utf8');
27 $tidy->cleanRepair();
28 echo $tidy;
H A Dbug_50558.phpt2 Bug #50558 - Broken object model when extending tidy
4 <?php if (!extension_loaded("tidy")) print "skip"; ?>
7 class MyTidy extends tidy
H A D021.phpt4 <?php if (!extension_loaded("tidy") || !function_exists('tidy_get_opt_doc')) print "skip"; ?>
8 var_dump(tidy_get_opt_doc(new tidy, 'some_bogus_cfg'));
10 $t = new tidy;
/PHP-7.1/ext/tidy/
H A Dconfig.w324 ARG_WITH("tidy", "TIDY support", "no");
7 if (CHECK_LIB("libtidy_a.lib;libtidy.lib;tidy_a.lib;tidy.lib", "tidy", PHP_TIDY) &&
9 CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") ||
10 CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) ||
11 CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true)
18 EXTENSION("tidy", "tidy.c");
23 ADD_DEF_FILE("ext\\tidy\\php_tidy.def");
26 WARNING("tidy not enabled; libraries and headers not found");
H A Dconfig.m45 PHP_ARG_WITH(tidy,for TIDY support,
6 [ --with-tidy[=DIR] Include TIDY support])
17 if test -f $i/include/tidy/tidy.h; then
19 TIDY_INCDIR=$i/include/tidy
20 elif test -f $i/include/tidy.h; then
30 dnl which indicates that we are building against tidy-html5
40 TIDY_LIB_NAME=tidy
41 PHP_CHECK_LIBRARY(tidy,tidyOptGetDoc,
56 PHP_NEW_EXTENSION(tidy, tidy.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
H A Dphp_tidy.h40 ZEND_BEGIN_MODULE_GLOBALS(tidy)
43 ZEND_END_MODULE_GLOBALS(tidy)
45 #define TG(v) ZEND_MODULE_GLOBALS_ACCESSOR(tidy, v)
/PHP-7.1/ext/tidy/examples/
H A Dcleanhtml5.php19 $tidy = tidy_parse_string($data); variable
21 $tidy = tidy_parse_file($_SERVER['argv'][1]); variable
24 $tidy->cleanRepair();
26 if(!empty($tidy->errorBuffer)) {
29 echo "{$tidy->errorBuffer}\n";
33 echo $tidy;

Completed in 26 milliseconds

123