/PHP-5.6/ext/tidy/tests/ |
H A D | 023.phpt | 2 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 D | 025.phpt | 4 <?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 D | 020.phpt | 4 <?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 D | tidy_error.phpt | 7 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 D | tidy_error1.phpt | 7 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 D | 013.phpt | 4 <?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 D | 030.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 17 $tidy = new tidy(); 18 $tidy->parseString($buffer, $config); 19 $c = $tidy->getConfig();
|
H A D | 034.phpt | 7 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 D | 007.phpt | 4 <?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 D | 001.phpt | 2 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 D | 027.phpt | 2 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 D | 015.phpt | 4 <?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 D | 014.phpt | 4 <?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 D | 032.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 13 $tidy = tidy_parse_string($buffer); 14 var_dump(tidy_error_count($tidy));
|
H A D | 033.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 13 $tidy = tidy_parse_string($buffer); 14 var_dump(tidy_warning_count($tidy));
|
H A D | 031.phpt | 7 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 D | 016.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 $tidy = tidy_parse_file(dirname(__FILE__)."/016.html", dirname(__FILE__)."/016.tcfg"); 8 tidy_clean_repair($tidy); 9 echo tidy_get_output($tidy);
|
H A D | 026.phpt | 2 tidy.clean_output test 4 <?php if (!extension_loaded('tidy')) die('skip'); ?> 6 tidy.clean_output=1
|
H A D | 024.phpt | 5 if (!extension_loaded('tidy')) die('skip'); 25 $tidy = tidy_parse_string($contents, $config, 'utf8'); 26 $tidy->cleanRepair(); 28 var_dump($tidy->value);
|
H A D | bug_50558.phpt | 2 Bug #50558 - Broken object model when extending tidy 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 class MyTidy extends tidy
|
H A D | 021.phpt | 4 <?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-5.6/ext/tidy/ |
H A D | config.w32 | 4 ARG_WITH("tidy", "TIDY support", "no"); 7 if (CHECK_LIB("libtidy_a.lib;libtidy.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) 13 EXTENSION("tidy", "tidy.c"); 16 ADD_DEF_FILE("ext\\tidy\\php_tidy.def"); 19 WARNING("tidy not enabled; libraries and headers not found");
|
H A D | config.m4 | 5 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 32 PHP_ADD_LIBRARY_WITH_PATH(tidy, $TIDY_LIBDIR, TIDY_SHARED_LIBADD) 35 PHP_CHECK_LIBRARY(tidy,tidyOptGetDoc, 41 PHP_NEW_EXTENSION(tidy, tidy.c, $ext_shared)
|
H A D | tidy.dsp | 1 # Microsoft Developer Studio Project File - Name="tidy" - Package Owner=<4> 7 CFG=tidy - Win32 Debug_TS 11 !MESSAGE NMAKE /f "tidy.mak". 16 !MESSAGE NMAKE /f "tidy.mak" CFG="tidy - Win32 Debug_TS" 20 !MESSAGE "tidy - Win32 Release_TS" (based on "Win32 (x86) Dynamic-Link Library") 21 !MESSAGE "tidy - Win32 Debug_TS" (based on "Win32 (x86) Dynamic-Link Library") 32 !IF "$(CFG)" == "tidy - Win32 Release_TS" 59 !ELSEIF "$(CFG)" == "tidy - Win32 Debug_TS" 89 # Name "tidy - Win32 Release_TS" 90 # Name "tidy - Win32 Debug_TS" [all …]
|
/PHP-5.6/ext/tidy/examples/ |
H A D | cleanhtml5.php | 19 $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;
|