PageRenderTime 63ms CodeModel.GetById 34ms RepoModel.GetById 1ms app.codeStats 0ms

/ide/eclipse/jaggery/org.eclipse.php.core/Resources/language/php5.3/tidy.php

https://github.com/blue666man/tools
PHP | 707 lines | 193 code | 76 blank | 438 comment | 0 complexity | e6247d2b8e855ee84a805d1f1004c138 MD5 | raw file
Possible License(s): 0BSD
  1. <?php
  2. // Start of tidy v.2.0
  3. class tidy {
  4. /**
  5. * Returns the value of the specified configuration option for the tidy document
  6. * @link http://www.php.net/manual/en/tidy.getopt.php
  7. * @param option string <p>
  8. * You will find a list with each configuration option and their types
  9. * at: &url.tidy.conf;.
  10. * </p>
  11. * @return mixed the value of the specified option.
  12. * The return type depends on the type of the specified one.
  13. */
  14. public function getOpt ($option) {}
  15. /**
  16. * Execute configured cleanup and repair operations on parsed markup
  17. * @link http://www.php.net/manual/en/tidy.cleanrepair.php
  18. * @return bool Returns true on success or false on failure.
  19. */
  20. public function cleanRepair () {}
  21. /**
  22. * Parse markup in file or URI
  23. * @link http://www.php.net/manual/en/tidy.parsefile.php
  24. * @param filename string <p>
  25. * If the filename parameter is given, this function
  26. * will also read that file and initialize the object with the file,
  27. * acting like tidy_parse_file.
  28. * </p>
  29. * @param config mixed[optional] <p>
  30. * The config config can be passed either as an
  31. * array or as a string. If a string is passed, it is interpreted as the
  32. * name of the configuration file, otherwise, it is interpreted as the
  33. * options themselves.
  34. * </p>
  35. * <p>
  36. * For an explanation about each option, see
  37. * &url.tidy.conf;.
  38. * </p>
  39. * @param encoding string[optional] <p>
  40. * The encoding parameter sets the encoding for
  41. * input/output documents. The possible values for encoding are:
  42. * ascii, latin0, latin1,
  43. * raw, utf8, iso2022,
  44. * mac, win1252, ibm858,
  45. * utf16, utf16le, utf16be,
  46. * big5, and shiftjis.
  47. * </p>
  48. * @param use_include_path bool[optional] <p>
  49. * Search for the file in the include_path.
  50. * </p>
  51. * @return bool Returns true on success or false on failure.
  52. */
  53. public function parseFile ($filename, $config = null, $encoding = null, $use_include_path = null) {}
  54. /**
  55. * Parse a document stored in a string
  56. * @link http://www.php.net/manual/en/tidy.parsestring.php
  57. * @param input string <p>
  58. * The data to be parsed.
  59. * </p>
  60. * @param config mixed[optional] <p>
  61. * The config config can be passed either as an
  62. * array or as a string. If a string is passed, it is interpreted as the
  63. * name of the configuration file, otherwise, it is interpreted as the
  64. * options themselves.
  65. * </p>
  66. * <p>
  67. * For an explanation about each option, visit &url.tidy.conf;.
  68. * </p>
  69. * @param encoding string[optional] <p>
  70. * The encoding parameter sets the encoding for
  71. * input/output documents. The possible values for encoding are:
  72. * ascii, latin0, latin1,
  73. * raw, utf8, iso2022,
  74. * mac, win1252, ibm858,
  75. * utf16, utf16le, utf16be,
  76. * big5, and shiftjis.
  77. * </p>
  78. * @return bool a new tidy instance.
  79. */
  80. public function parseString ($input, $config = null, $encoding = null) {}
  81. /**
  82. * Repair a string using an optionally provided configuration file
  83. * @link http://www.php.net/manual/en/tidy.repairstring.php
  84. * @param data string <p>
  85. * The data to be repaired.
  86. * </p>
  87. * @param config mixed[optional] <p>
  88. * The config config can be passed either as an
  89. * array or as a string. If a string is passed, it is interpreted as the
  90. * name of the configuration file, otherwise, it is interpreted as the
  91. * options themselves.
  92. * </p>
  93. * <p>
  94. * Check &url.tidy.conf; for
  95. * an explanation about each option.
  96. * </p>
  97. * @param encoding string[optional] <p>
  98. * The encoding parameter sets the encoding for
  99. * input/output documents. The possible values for encoding are:
  100. * ascii, latin0, latin1,
  101. * raw, utf8, iso2022,
  102. * mac, win1252, ibm858,
  103. * utf16, utf16le, utf16be,
  104. * big5, and shiftjis.
  105. * </p>
  106. * @return string the repaired string.
  107. */
  108. public function repairString ($data, $config = null, $encoding = null) {}
  109. /**
  110. * Repair a file and return it as a string
  111. * @link http://www.php.net/manual/en/tidy.repairfile.php
  112. * @param filename string <p>
  113. * The file to be repaired.
  114. * </p>
  115. * @param config mixed[optional] <p>
  116. * The config config can be passed either as an
  117. * array or as a string. If a string is passed, it is interpreted as the
  118. * name of the configuration file, otherwise, it is interpreted as the
  119. * options themselves.
  120. * </p>
  121. * <p>
  122. * Check http://tidy.sourceforge.net/docs/quickref.html for an
  123. * explanation about each option.
  124. * </p>
  125. * @param encoding string[optional] <p>
  126. * The encoding parameter sets the encoding for
  127. * input/output documents. The possible values for encoding are:
  128. * ascii, latin0, latin1,
  129. * raw, utf8, iso2022,
  130. * mac, win1252, ibm858,
  131. * utf16, utf16le, utf16be,
  132. * big5, and shiftjis.
  133. * </p>
  134. * @param use_include_path bool[optional] <p>
  135. * Search for the file in the include_path.
  136. * </p>
  137. * @return string the repaired contents as a string.
  138. */
  139. public function repairFile ($filename, $config = null, $encoding = null, $use_include_path = null) {}
  140. /**
  141. * Run configured diagnostics on parsed and repaired markup
  142. * @link http://www.php.net/manual/en/function.tidy-diagnose.php
  143. * @return bool Returns true on success or false on failure.
  144. */
  145. public function diagnose () {}
  146. /**
  147. * Get release date (version) for Tidy library
  148. * @link http://www.php.net/manual/en/tidy.getrelease.php
  149. * @return string a string with the release date of the Tidy library.
  150. */
  151. public function getRelease () {}
  152. /**
  153. * Get current Tidy configuration
  154. * @link http://www.php.net/manual/en/tidy.getconfig.php
  155. * @return array an array of configuration options.
  156. * </p>
  157. * <p>
  158. * For an explanation about each option, visit &url.tidy.conf;.
  159. */
  160. public function getConfig () {}
  161. /**
  162. * Get status of specified document
  163. * @link http://www.php.net/manual/en/tidy.getstatus.php
  164. * @return int 0 if no error/warning was raised, 1 for warnings or accessibility
  165. * errors, or 2 for errors.
  166. */
  167. public function getStatus () {}
  168. public function getHtmlVer () {}
  169. /**
  170. * Returns the documentation for the given option name
  171. * @link http://www.php.net/manual/en/tidy.getoptdoc.php
  172. * @param optname string <p>
  173. * The option name
  174. * </p>
  175. * @return string a string if the option exists and has documentation available, or
  176. * false otherwise.
  177. */
  178. public function getOptDoc ($optname) {}
  179. /**
  180. * Indicates if the document is a XHTML document
  181. * @link http://www.php.net/manual/en/tidy.isxhtml.php
  182. * @return bool This function returns true if the specified tidy
  183. * object is a XHTML document, or false otherwise.
  184. * </p>
  185. * <p>
  186. * This function is not yet implemented in the Tidylib itself, so it always
  187. * return false.
  188. */
  189. public function isXhtml () {}
  190. /**
  191. * Indicates if the document is a generic (non HTML/XHTML) XML document
  192. * @link http://www.php.net/manual/en/tidy.isxml.php
  193. * @return bool This function returns true if the specified tidy
  194. * object is a generic XML document (non HTML/XHTML),
  195. * or false otherwise.
  196. * </p>
  197. * <p>
  198. * This function is not yet implemented in the Tidylib itself, so it always
  199. * return false.
  200. */
  201. public function isXml () {}
  202. /**
  203. * Returns a <classname>tidyNode</classname> object representing the root of the tidy parse tree
  204. * @link http://www.php.net/manual/en/tidy.root.php
  205. * @return tidyNode the tidyNode object.
  206. */
  207. public function root () {}
  208. /**
  209. * Returns a <classname>tidyNode</classname> object starting from the &lt;head&gt; tag of the tidy parse tree
  210. * @link http://www.php.net/manual/en/tidy.head.php
  211. * @return tidyNode the tidyNode object.
  212. */
  213. public function head () {}
  214. /**
  215. * Returns a <classname>tidyNode</classname> object starting from the &lt;html&gt; tag of the tidy parse tree
  216. * @link http://www.php.net/manual/en/tidy.html.php
  217. * @return tidyNode the tidyNode object.
  218. */
  219. public function html () {}
  220. /**
  221. * Returns a <classname>tidyNode</classname> object starting from the &lt;body&gt; tag of the tidy parse tree
  222. * @link http://www.php.net/manual/en/tidy.body.php
  223. * @return tidyNode the detected HTML version.
  224. * </p>
  225. * <p>
  226. * This function is not yet implemented in the Tidylib itself, so it always
  227. * return 0.
  228. */
  229. public function body () {}
  230. /**
  231. * Constructs a new <classname>tidy</classname> object
  232. * @link http://www.php.net/manual/en/tidy.construct.php
  233. * @param filename string[optional] <p>
  234. * If the filename parameter is given, this function
  235. * will also read that file and initialize the object with the file,
  236. * acting like tidy_parse_file.
  237. * </p>
  238. * @param config mixed[optional] <p>
  239. * The config config can be passed either as an
  240. * array or as a string. If a string is passed, it is interpreted as the
  241. * name of the configuration file, otherwise, it is interpreted as the
  242. * options themselves.
  243. * </p>
  244. * <p>
  245. * For an explanation about each option, visit &url.tidy.conf;.
  246. * </p>
  247. * @param encoding string[optional] <p>
  248. * The encoding parameter sets the encoding for
  249. * input/output documents. The possible values for encoding are:
  250. * ascii, latin0, latin1,
  251. * raw, utf8, iso2022,
  252. * mac, win1252, ibm858,
  253. * utf16, utf16le, utf16be,
  254. * big5, and shiftjis.
  255. * </p>
  256. * @param use_include_path bool[optional] <p>
  257. * Search for the file in the include_path.
  258. * </p>
  259. * @return tidy the new tidy instance.
  260. */
  261. public function __construct ($filename = null, $config = null, $encoding = null, $use_include_path = null) {}
  262. }
  263. final class tidyNode {
  264. /**
  265. * Checks if a node has children
  266. * @link http://www.php.net/manual/en/tidynode.haschildren.php
  267. * @return bool true if the node has children, false otherwise.
  268. */
  269. public function hasChildren () {}
  270. /**
  271. * Checks if a node has siblings
  272. * @link http://www.php.net/manual/en/tidynode.hassiblings.php
  273. * @return bool true if the node has siblings, false otherwise.
  274. */
  275. public function hasSiblings () {}
  276. /**
  277. * Checks if a node represents a comment
  278. * @link http://www.php.net/manual/en/tidynode.iscomment.php
  279. * @return bool true if the node is a comment, false otherwise.
  280. */
  281. public function isComment () {}
  282. /**
  283. * Checks if a node is part of a HTML document
  284. * @link http://www.php.net/manual/en/tidynode.ishtml.php
  285. * @return bool true if the node is part of a HTML document, false otherwise.
  286. */
  287. public function isHtml () {}
  288. /**
  289. * Checks if a node represents text (no markup)
  290. * @link http://www.php.net/manual/en/tidynode.istext.php
  291. * @return bool true if the node represent a text, false otherwise.
  292. */
  293. public function isText () {}
  294. /**
  295. * Checks if this node is JSTE
  296. * @link http://www.php.net/manual/en/tidynode.isjste.php
  297. * @return bool true if the node is JSTE, false otherwise.
  298. */
  299. public function isJste () {}
  300. /**
  301. * Checks if this node is ASP
  302. * @link http://www.php.net/manual/en/tidynode.isasp.php
  303. * @return bool true if the node is ASP, false otherwise.
  304. */
  305. public function isAsp () {}
  306. /**
  307. * Checks if a node is PHP
  308. * @link http://www.php.net/manual/en/tidynode.isphp.php
  309. * @return bool true if the current node is PHP code, false otherwise.
  310. */
  311. public function isPhp () {}
  312. /**
  313. * Returns the parent node of the current node
  314. * @link http://www.php.net/manual/en/tidynode.getparent.php
  315. * @return tidyNode a tidyNode if the node has a parent, or &null;
  316. * otherwise.
  317. */
  318. public function getParent () {}
  319. private function __construct () {}
  320. }
  321. /**
  322. * @param option
  323. */
  324. function tidy_getopt ($option) {}
  325. /**
  326. * @param input
  327. * @param config_options[optional]
  328. * @param encoding[optional]
  329. */
  330. function tidy_parse_string ($input, $config_options, $encoding) {}
  331. /**
  332. * @param file
  333. * @param config_options[optional]
  334. * @param encoding[optional]
  335. * @param use_include_path[optional]
  336. */
  337. function tidy_parse_file ($file, $config_options, $encoding, $use_include_path) {}
  338. /**
  339. * Return a string representing the parsed tidy markup
  340. * @link http://www.php.net/manual/en/function.tidy-get-output.php
  341. * @param object tidy <p>
  342. * &tidy.object;
  343. * </p>
  344. * @return string the parsed tidy markup.
  345. */
  346. function tidy_get_output (tidy $object) {}
  347. /**
  348. * Return warnings and errors which occurred parsing the specified document
  349. * @link http://www.php.net/manual/en/function.tidy-get-error-buffer.php
  350. * @param object tidy <p>
  351. * &tidy.object;
  352. * </p>
  353. * @return string the error buffer as a string.
  354. */
  355. function tidy_get_error_buffer (tidy $object) {}
  356. function tidy_clean_repair () {}
  357. /**
  358. * @param data
  359. * @param config_file[optional]
  360. * @param encoding[optional]
  361. */
  362. function tidy_repair_string ($data, $config_file, $encoding) {}
  363. /**
  364. * @param filename
  365. * @param config_file[optional]
  366. * @param encoding[optional]
  367. * @param use_include_path[optional]
  368. */
  369. function tidy_repair_file ($filename, $config_file, $encoding, $use_include_path) {}
  370. function tidy_diagnose () {}
  371. function tidy_get_release () {}
  372. function tidy_get_config () {}
  373. function tidy_get_status () {}
  374. function tidy_get_html_ver () {}
  375. function tidy_is_xhtml () {}
  376. function tidy_is_xml () {}
  377. /**
  378. * Returns the Number of Tidy errors encountered for specified document
  379. * @link http://www.php.net/manual/en/function.tidy-error-count.php
  380. * @param object tidy <p>
  381. * &tidy.object;
  382. * </p>
  383. * @return int the number of errors.
  384. */
  385. function tidy_error_count (tidy $object) {}
  386. /**
  387. * Returns the Number of Tidy warnings encountered for specified document
  388. * @link http://www.php.net/manual/en/function.tidy-warning-count.php
  389. * @param object tidy <p>
  390. * &tidy.object;
  391. * </p>
  392. * @return int the number of warnings.
  393. */
  394. function tidy_warning_count (tidy $object) {}
  395. /**
  396. * Returns the Number of Tidy accessibility warnings encountered for specified document
  397. * @link http://www.php.net/manual/en/function.tidy-access-count.php
  398. * @param object tidy <p>
  399. * &tidy.object;
  400. * </p>
  401. * @return int the number of warnings.
  402. */
  403. function tidy_access_count (tidy $object) {}
  404. /**
  405. * Returns the Number of Tidy configuration errors encountered for specified document
  406. * @link http://www.php.net/manual/en/function.tidy-config-count.php
  407. * @param object tidy <p>
  408. * &tidy.object;
  409. * </p>
  410. * @return int the number of errors.
  411. */
  412. function tidy_config_count (tidy $object) {}
  413. /**
  414. * @param resource
  415. * @param optname
  416. */
  417. function tidy_get_opt_doc ($resource, $optname) {}
  418. function tidy_get_root () {}
  419. function tidy_get_head () {}
  420. function tidy_get_html () {}
  421. /**
  422. * @param tidy
  423. */
  424. function tidy_get_body ($tidy) {}
  425. /**
  426. * ob_start callback function to repair the buffer
  427. * @link http://www.php.net/manual/en/function.ob-tidyhandler.php
  428. * @param input string <p>
  429. * The buffer.
  430. * </p>
  431. * @param mode int[optional] <p>
  432. * The buffer mode.
  433. * </p>
  434. * @return string the modified buffer.
  435. */
  436. function ob_tidyhandler ($input, $mode = null) {}
  437. /**
  438. * description
  439. * @link http://www.php.net/manual/en/tidy.constants.php
  440. */
  441. define ('TIDY_TAG_UNKNOWN', 0);
  442. define ('TIDY_TAG_A', 1);
  443. define ('TIDY_TAG_ABBR', 2);
  444. define ('TIDY_TAG_ACRONYM', 3);
  445. define ('TIDY_TAG_ADDRESS', 4);
  446. define ('TIDY_TAG_ALIGN', 5);
  447. define ('TIDY_TAG_APPLET', 6);
  448. define ('TIDY_TAG_AREA', 7);
  449. define ('TIDY_TAG_B', 8);
  450. define ('TIDY_TAG_BASE', 9);
  451. define ('TIDY_TAG_BASEFONT', 10);
  452. define ('TIDY_TAG_BDO', 11);
  453. define ('TIDY_TAG_BGSOUND', 12);
  454. define ('TIDY_TAG_BIG', 13);
  455. define ('TIDY_TAG_BLINK', 14);
  456. define ('TIDY_TAG_BLOCKQUOTE', 15);
  457. define ('TIDY_TAG_BODY', 16);
  458. define ('TIDY_TAG_BR', 17);
  459. define ('TIDY_TAG_BUTTON', 18);
  460. define ('TIDY_TAG_CAPTION', 19);
  461. define ('TIDY_TAG_CENTER', 20);
  462. define ('TIDY_TAG_CITE', 21);
  463. define ('TIDY_TAG_CODE', 22);
  464. define ('TIDY_TAG_COL', 23);
  465. define ('TIDY_TAG_COLGROUP', 24);
  466. define ('TIDY_TAG_COMMENT', 25);
  467. define ('TIDY_TAG_DD', 26);
  468. define ('TIDY_TAG_DEL', 27);
  469. define ('TIDY_TAG_DFN', 28);
  470. define ('TIDY_TAG_DIR', 29);
  471. define ('TIDY_TAG_DIV', 30);
  472. define ('TIDY_TAG_DL', 31);
  473. define ('TIDY_TAG_DT', 32);
  474. define ('TIDY_TAG_EM', 33);
  475. define ('TIDY_TAG_EMBED', 34);
  476. define ('TIDY_TAG_FIELDSET', 35);
  477. define ('TIDY_TAG_FONT', 36);
  478. define ('TIDY_TAG_FORM', 37);
  479. define ('TIDY_TAG_FRAME', 38);
  480. define ('TIDY_TAG_FRAMESET', 39);
  481. define ('TIDY_TAG_H1', 40);
  482. define ('TIDY_TAG_H2', 41);
  483. define ('TIDY_TAG_H3', 42);
  484. define ('TIDY_TAG_H4', 43);
  485. define ('TIDY_TAG_H5', 44);
  486. define ('TIDY_TAG_H6', 45);
  487. define ('TIDY_TAG_HEAD', 46);
  488. define ('TIDY_TAG_HR', 47);
  489. define ('TIDY_TAG_HTML', 48);
  490. define ('TIDY_TAG_I', 49);
  491. define ('TIDY_TAG_IFRAME', 50);
  492. define ('TIDY_TAG_ILAYER', 51);
  493. define ('TIDY_TAG_IMG', 52);
  494. define ('TIDY_TAG_INPUT', 53);
  495. define ('TIDY_TAG_INS', 54);
  496. define ('TIDY_TAG_ISINDEX', 55);
  497. define ('TIDY_TAG_KBD', 56);
  498. define ('TIDY_TAG_KEYGEN', 57);
  499. define ('TIDY_TAG_LABEL', 58);
  500. define ('TIDY_TAG_LAYER', 59);
  501. define ('TIDY_TAG_LEGEND', 60);
  502. define ('TIDY_TAG_LI', 61);
  503. define ('TIDY_TAG_LINK', 62);
  504. define ('TIDY_TAG_LISTING', 63);
  505. define ('TIDY_TAG_MAP', 64);
  506. define ('TIDY_TAG_MARQUEE', 65);
  507. define ('TIDY_TAG_MENU', 66);
  508. define ('TIDY_TAG_META', 67);
  509. define ('TIDY_TAG_MULTICOL', 68);
  510. define ('TIDY_TAG_NOBR', 69);
  511. define ('TIDY_TAG_NOEMBED', 70);
  512. define ('TIDY_TAG_NOFRAMES', 71);
  513. define ('TIDY_TAG_NOLAYER', 72);
  514. define ('TIDY_TAG_NOSAVE', 73);
  515. define ('TIDY_TAG_NOSCRIPT', 74);
  516. define ('TIDY_TAG_OBJECT', 75);
  517. define ('TIDY_TAG_OL', 76);
  518. define ('TIDY_TAG_OPTGROUP', 77);
  519. define ('TIDY_TAG_OPTION', 78);
  520. define ('TIDY_TAG_P', 79);
  521. define ('TIDY_TAG_PARAM', 80);
  522. define ('TIDY_TAG_PLAINTEXT', 81);
  523. define ('TIDY_TAG_PRE', 82);
  524. define ('TIDY_TAG_Q', 83);
  525. define ('TIDY_TAG_RB', 84);
  526. define ('TIDY_TAG_RBC', 85);
  527. define ('TIDY_TAG_RP', 86);
  528. define ('TIDY_TAG_RT', 87);
  529. define ('TIDY_TAG_RTC', 88);
  530. define ('TIDY_TAG_RUBY', 89);
  531. define ('TIDY_TAG_S', 90);
  532. define ('TIDY_TAG_SAMP', 91);
  533. define ('TIDY_TAG_SCRIPT', 92);
  534. define ('TIDY_TAG_SELECT', 93);
  535. define ('TIDY_TAG_SERVER', 94);
  536. define ('TIDY_TAG_SERVLET', 95);
  537. define ('TIDY_TAG_SMALL', 96);
  538. define ('TIDY_TAG_SPACER', 97);
  539. define ('TIDY_TAG_SPAN', 98);
  540. define ('TIDY_TAG_STRIKE', 99);
  541. define ('TIDY_TAG_STRONG', 100);
  542. define ('TIDY_TAG_STYLE', 101);
  543. define ('TIDY_TAG_SUB', 102);
  544. define ('TIDY_TAG_SUP', 103);
  545. define ('TIDY_TAG_TABLE', 104);
  546. define ('TIDY_TAG_TBODY', 105);
  547. define ('TIDY_TAG_TD', 106);
  548. define ('TIDY_TAG_TEXTAREA', 107);
  549. define ('TIDY_TAG_TFOOT', 108);
  550. define ('TIDY_TAG_TH', 109);
  551. define ('TIDY_TAG_THEAD', 110);
  552. define ('TIDY_TAG_TITLE', 111);
  553. define ('TIDY_TAG_TR', 112);
  554. define ('TIDY_TAG_TT', 113);
  555. define ('TIDY_TAG_U', 114);
  556. define ('TIDY_TAG_UL', 115);
  557. define ('TIDY_TAG_VAR', 116);
  558. define ('TIDY_TAG_WBR', 117);
  559. define ('TIDY_TAG_XMP', 118);
  560. /**
  561. * root node
  562. * @link http://www.php.net/manual/en/tidy.constants.php
  563. */
  564. define ('TIDY_NODETYPE_ROOT', 0);
  565. /**
  566. * doctype
  567. * @link http://www.php.net/manual/en/tidy.constants.php
  568. */
  569. define ('TIDY_NODETYPE_DOCTYPE', 1);
  570. /**
  571. * HTML comment
  572. * @link http://www.php.net/manual/en/tidy.constants.php
  573. */
  574. define ('TIDY_NODETYPE_COMMENT', 2);
  575. /**
  576. * Processing Instruction
  577. * @link http://www.php.net/manual/en/tidy.constants.php
  578. */
  579. define ('TIDY_NODETYPE_PROCINS', 3);
  580. /**
  581. * Text
  582. * @link http://www.php.net/manual/en/tidy.constants.php
  583. */
  584. define ('TIDY_NODETYPE_TEXT', 4);
  585. /**
  586. * start tag
  587. * @link http://www.php.net/manual/en/tidy.constants.php
  588. */
  589. define ('TIDY_NODETYPE_START', 5);
  590. /**
  591. * end tag
  592. * @link http://www.php.net/manual/en/tidy.constants.php
  593. */
  594. define ('TIDY_NODETYPE_END', 6);
  595. /**
  596. * empty tag
  597. * @link http://www.php.net/manual/en/tidy.constants.php
  598. */
  599. define ('TIDY_NODETYPE_STARTEND', 7);
  600. /**
  601. * CDATA
  602. * @link http://www.php.net/manual/en/tidy.constants.php
  603. */
  604. define ('TIDY_NODETYPE_CDATA', 8);
  605. /**
  606. * XML section
  607. * @link http://www.php.net/manual/en/tidy.constants.php
  608. */
  609. define ('TIDY_NODETYPE_SECTION', 9);
  610. /**
  611. * ASP code
  612. * @link http://www.php.net/manual/en/tidy.constants.php
  613. */
  614. define ('TIDY_NODETYPE_ASP', 10);
  615. /**
  616. * JSTE code
  617. * @link http://www.php.net/manual/en/tidy.constants.php
  618. */
  619. define ('TIDY_NODETYPE_JSTE', 11);
  620. /**
  621. * PHP code
  622. * @link http://www.php.net/manual/en/tidy.constants.php
  623. */
  624. define ('TIDY_NODETYPE_PHP', 12);
  625. /**
  626. * XML declaration
  627. * @link http://www.php.net/manual/en/tidy.constants.php
  628. */
  629. define ('TIDY_NODETYPE_XMLDECL', 13);
  630. // End of tidy v.2.0
  631. ?>